We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7be2ebe commit e7f5f71Copy full SHA for e7f5f71
src/reader.rs
@@ -32,6 +32,11 @@ impl<R: Read + Seek> Mp4Reader<R> {
32
let header = BoxHeader::read(&mut reader)?;
33
let BoxHeader { name, size: s } = header;
34
35
+ // Break if size zero BoxHeader, which can result in dead-loop.
36
+ if s == 0 {
37
+ break;
38
+ }
39
+
40
// Match and parse the atom boxes.
41
match name {
42
BoxType::FtypBox => {
0 commit comments