Fix bug when calculating EOF position in mp4 sniffing

PiperOrigin-RevId: 227668426
This commit is contained in:
aquilescanta 2019-01-03 12:26:03 +00:00 committed by Oliver Woodman
parent fc16833903
commit aff689a7da

View File

@ -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;
}
}