1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2024-05-19 16:58:04 +00:00
This commit is contained in:
mattc1170 2023-10-12 12:19:03 -04:00 committed by GitHub
commit afec435505
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ use std::io::{Read, Seek, Write};
use crate::mp4box::*;
#[derive(Debug, Clone, PartialEq, Eq, Default, Serialize)]
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
pub struct VmhdBox {
pub version: u8,
pub flags: u32,
@ -29,6 +29,17 @@ impl VmhdBox {
}
}
impl Default for VmhdBox {
fn default() -> Self {
Self {
version: 0,
flags: 1,
graphics_mode: 0,
op_color: RgbColor::default(),
}
}
}
impl Mp4Box for VmhdBox {
fn box_type(&self) -> BoxType {
self.get_type()