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
|
@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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user