Commit aff689a7 by aquilescanta Committed by Oliver Woodman

Fix bug when calculating EOF position in mp4 sniffing

PiperOrigin-RevId: 227668426
parent fc168339
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment