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

Issue: #6774
PiperOrigin-RevId: 286575797
This commit is contained in:
olly 2019-12-20 15:37:08 +00:00 committed by Oliver Woodman
parent e8cb7b2370
commit 406acfc38f

View file

@ -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) {
// The file is invalid because the atom size is too small for its header.
return false;