mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix indexing error
This commit is contained in:
parent
3fbfe29d27
commit
076a77e598
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ import java.util.Arrays;
|
||||||
streamResetFlags[i] = true;
|
streamResetFlags[i] = true;
|
||||||
// If there's still a chance of avoiding a seek, try and seek within the sample queue.
|
// If there's still a chance of avoiding a seek, try and seek within the sample queue.
|
||||||
if (!seekRequired) {
|
if (!seekRequired) {
|
||||||
SampleQueue sampleQueue = sampleQueues[i];
|
SampleQueue sampleQueue = sampleQueues[track];
|
||||||
sampleQueue.rewind();
|
sampleQueue.rewind();
|
||||||
seekRequired = !sampleQueue.advanceTo(positionUs, true, true)
|
seekRequired = !sampleQueue.advanceTo(positionUs, true, true)
|
||||||
&& sampleQueue.getReadIndex() != 0;
|
&& sampleQueue.getReadIndex() != 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue