mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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
5920305b84
commit
8e96188909
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) {
|
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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue