mirror of
https://github.com/alfg/mp4-rust.git
synced 2025-04-15 08:14:15 +00:00
.
This commit is contained in:
parent
21ce6a9368
commit
b780ef092a
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue