1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2025-04-15 08:14:15 +00:00
This commit is contained in:
damitha 2025-03-24 23:50:14 +11:00
parent 21ce6a9368
commit b780ef092a

View file

@ -50,8 +50,10 @@ impl Mp4aBox {
pub fn get_size(&self) -> u64 {
let mut size = HEADER_SIZE + 8 + 20;
if let Some(ref qt_bytes) = self.qt_bytes {
size += qt_bytes.len() as u64;
if self.sound_version != 0 {
if let Some(ref qt_bytes) = self.qt_bytes {
size += qt_bytes.len() as u64;
}
}
if let Some(ref esds) = self.esds {
size += esds.box_size();