mirror of
https://github.com/alfg/mp4-rust.git
synced 2025-04-16 16:54:14 +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:
parent
efefcc4735
commit
bb98664ee7
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue