mirror of
https://github.com/androidx/media.git
synced 2025-05-10 09:12:16 +08:00
Fix bug when calculating EOF position in mp4 sniffing
PiperOrigin-RevId: 227668426
This commit is contained in:
parent
fc16833903
commit
aff689a7da
@ -114,7 +114,7 @@ import java.io.IOException;
|
|||||||
// The atom extends to the end of the file.
|
// The atom extends to the end of the file.
|
||||||
long endPosition = input.getLength();
|
long endPosition = input.getLength();
|
||||||
if (endPosition != C.LENGTH_UNSET) {
|
if (endPosition != C.LENGTH_UNSET) {
|
||||||
atomSize = endPosition - input.getPosition() + headerSize;
|
atomSize = endPosition - input.getPeekPosition() + headerSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user