mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix and/or bug in XingSeeker
This was accidentally introduced in 4fde35c9cc
PiperOrigin-RevId: 634465380
This commit is contained in:
parent
25e56474bc
commit
2ac8247cf4
@ -40,7 +40,7 @@ import androidx.media3.extractor.SeekPoint;
|
||||
*/
|
||||
@Nullable
|
||||
public static XingSeeker create(long inputLength, XingFrame xingFrame, long position) {
|
||||
if (xingFrame.frameCount == C.LENGTH_UNSET && xingFrame.frameCount == 0) {
|
||||
if (xingFrame.frameCount == C.LENGTH_UNSET || xingFrame.frameCount == 0) {
|
||||
// If the frame count is missing/invalid, the header can't be used to determine the duration.
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user