1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2024-06-11 09:29:21 +00:00

Fix more errors when serializing a mvex box.

udta is also broken but that can be fixed in another PR.
This commit is contained in:
Luke Curley 2023-05-02 11:32:31 -07:00
parent efefcc4735
commit bb98664ee7
2 changed files with 4 additions and 1 deletions

View file

@ -38,6 +38,9 @@ impl MoovBox {
if let Some(udta) = &self.udta {
size += udta.box_size();
}
if let Some(mvex) = &self.mvex {
size += mvex.box_size();
}
size
}
}

View file

@ -14,7 +14,7 @@ pub struct MvexBox {
impl MvexBox {
pub fn get_type(&self) -> BoxType {
BoxType::MdiaBox
BoxType::MvexBox
}
pub fn get_size(&self) -> u64 {