mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
Relax MP4 sniffing to allow an atom to extend beyond the file length
Issue: #6774 PiperOrigin-RevId: 286575797
This commit is contained in:
parent
e8cb7b2370
commit
406acfc38f
1 changed files with 0 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue