mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Fix bug when calculating EOF position in mp4 sniffing
PiperOrigin-RevId: 227668426
This commit is contained in:
parent
fc16833903
commit
aff689a7da
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ import java.io.IOException;
|
|||
// The atom extends to the end of the file.
|
||||
long endPosition = input.getLength();
|
||||
if (endPosition != C.LENGTH_UNSET) {
|
||||
atomSize = endPosition - input.getPosition() + headerSize;
|
||||
atomSize = endPosition - input.getPeekPosition() + headerSize;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue