Commit 9f77c400 by Oliver Woodman

Clip seek position to the inputLength - 1.

parent d9071710
...@@ -137,7 +137,7 @@ import com.google.android.exoplayer.util.Util; ...@@ -137,7 +137,7 @@ import com.google.android.exoplayer.util.Util;
} }
long position = (long) ((1f / 256) * fx * sizeBytes) + firstFramePosition; 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 @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment