Skip to content

Commit

Permalink
bugfix: fix size when parsing largesize box header (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfg authored Jan 31, 2021
1 parent 75599fe commit 0d2d254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mp4box/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl BoxHeader {

Ok(BoxHeader {
name: BoxType::from(typ),
size: largesize,
size: largesize - HEADER_SIZE,
})
} else {
Ok(BoxHeader {
Expand Down

0 comments on commit 0d2d254

Please sign in to comment.