mirror of
https://github.com/samsonjs/media.git
synced 2026-04-08 11:45:51 +00:00
Clip seek position to the inputLength - 1.
This commit is contained in:
parent
d9071710cf
commit
9f77c4009e
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue