mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Small fix in IndexSeekMap
This change was meant to be in 2e5f2f12ad but
was not added my mistake.
PiperOrigin-RevId: 337041686
This commit is contained in:
parent
36c2fe1053
commit
947b637441
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ public final class IndexSeekMap implements SeekMap {
|
|||
int targetIndex =
|
||||
Util.binarySearchFloor(timesUs, timeUs, /* inclusive= */ true, /* stayInBounds= */ true);
|
||||
SeekPoint leftSeekPoint = new SeekPoint(timesUs[targetIndex], positions[targetIndex]);
|
||||
if (leftSeekPoint.timeUs >= timeUs || targetIndex == timesUs.length - 1) {
|
||||
if (leftSeekPoint.timeUs == timeUs || targetIndex == timesUs.length - 1) {
|
||||
return new SeekMap.SeekPoints(leftSeekPoint);
|
||||
} else {
|
||||
SeekPoint rightSeekPoint =
|
||||
|
|
|
|||
Loading…
Reference in a new issue