Skip to content

Commit 49fc621

Browse files
torokati44kinetiknz
authored andcommitted
Allow padding at the end of ctts boxes outside of strict mode.
1 parent 99ece99 commit 49fc621

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mp4parse/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4780,7 +4780,8 @@ fn read_ctts<T: Read>(src: &mut BMFFBox<T>) -> Result<CompositionOffsetBox> {
47804780
})?;
47814781
}
47824782

4783-
check_parser_state!(src.content);
4783+
// Padding could be added in some contents.
4784+
skip_box_remain(src)?;
47844785

47854786
Ok(CompositionOffsetBox { samples: offsets })
47864787
}

0 commit comments

Comments
 (0)