mirror of
https://github.com/alfg/mp4-rust.git
synced 2024-06-02 13:39:54 +00:00
Derive Default for TfdtBox
This commit is contained in:
parent
801e6dedd8
commit
f3e8f9f779
|
@ -4,23 +4,13 @@ use std::io::{Read, Seek, Write};
|
|||
|
||||
use crate::mp4box::*;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize)]
|
||||
#[derive(Debug, Clone, PartialEq, Default, Serialize)]
|
||||
pub struct TfdtBox {
|
||||
pub version: u8,
|
||||
pub flags: u32,
|
||||
pub base_media_decode_time: u64,
|
||||
}
|
||||
|
||||
impl Default for TfdtBox {
|
||||
fn default() -> Self {
|
||||
TfdtBox {
|
||||
version: 0,
|
||||
flags: 0,
|
||||
base_media_decode_time: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl TfdtBox {
|
||||
pub fn get_type(&self) -> BoxType {
|
||||
BoxType::TfdtBox
|
||||
|
|
Loading…
Reference in a new issue