mirror of
https://github.com/androidx/media.git
synced 2025-05-10 00:59:51 +08:00
Clip seek position to the inputLength - 1.
This commit is contained in:
parent
d9071710cf
commit
9f77c4009e
@ -137,7 +137,7 @@ import com.google.android.exoplayer.util.Util;
|
||||
}
|
||||
|
||||
long position = (long) ((1f / 256) * fx * sizeBytes) + firstFramePosition;
|
||||
return inputLength != C.LENGTH_UNBOUNDED ? Math.min(position, inputLength) : position;
|
||||
return inputLength != C.LENGTH_UNBOUNDED ? Math.min(position, inputLength - 1) : position;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user