Fix and/or bug in XingSeeker

This was accidentally introduced in 4fde35c9cc

PiperOrigin-RevId: 634465380
This commit is contained in:
ibaker 2024-05-16 11:03:31 -07:00 committed by Copybara-Service
parent 25e56474bc
commit 2ac8247cf4

View File

@ -40,7 +40,7 @@ import androidx.media3.extractor.SeekPoint;
*/ */
@Nullable @Nullable
public static XingSeeker create(long inputLength, XingFrame xingFrame, long position) { 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. // If the frame count is missing/invalid, the header can't be used to determine the duration.
return null; return null;
} }