Commit 406acfc3 by olly Committed by Oliver Woodman

Relax MP4 sniffing to allow an atom to extend beyond the file length

Issue: #6774
PiperOrigin-RevId: 286575797
parent e8cb7b23
...@@ -118,10 +118,6 @@ import java.io.IOException; ...@@ -118,10 +118,6 @@ import java.io.IOException;
} }
} }
if (inputLength != C.LENGTH_UNSET && bytesSearched + atomSize > inputLength) {
// The file is invalid because the atom extends past the end of the file.
return false;
}
if (atomSize < headerSize) { if (atomSize < headerSize) {
// The file is invalid because the atom size is too small for its header. // The file is invalid because the atom size is too small for its header.
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment