mirror of
https://github.com/alfg/mp4-rust.git
synced 2024-05-19 16:58:04 +00:00
Relax error on box size mismatch
This commit is contained in:
parent
045677e56e
commit
1996727b3d
|
@ -32,9 +32,7 @@ impl Mp4Header {
|
|||
let header = BoxHeader::read(reader)?;
|
||||
let BoxHeader { name, size: s } = header;
|
||||
if s > size {
|
||||
return Err(Error::InvalidData(
|
||||
"file contains a box with a larger size than it",
|
||||
));
|
||||
break;
|
||||
}
|
||||
|
||||
// Break if size zero BoxHeader, which can result in dead-loop.
|
||||
|
|
Loading…
Reference in a new issue