mirror of
https://github.com/alfg/mp4-rust.git
synced 2025-01-03 08:58:40 +00:00
fix get_size() for trunbox
This commit is contained in:
parent
c669d7b080
commit
d5eec0666e
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,11 @@ impl TrunBox {
|
|||
if TrunBox::FLAG_SAMPLE_CTS & self.flags > 0 {
|
||||
sum += 4 * self.sample_count as u64;
|
||||
}
|
||||
|
||||
sum += (4 * self.sample_durations.len()) as u64;
|
||||
sum += (4 * self.sample_sizes.len()) as u64;
|
||||
sum += (4 * self.sample_flags.len()) as u64;
|
||||
sum += (4 * self.sample_cts.len()) as u64;
|
||||
sum
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue