mirror of
https://github.com/samsonjs/media.git
synced 2026-04-07 11:35:46 +00:00
Merge pull request #2183 from WeiChungChang/proposal-fix
Fix the issue when the sequence of PTS is out of order by bidirectional prediction for skipToKeyframeBefore()
This commit is contained in:
commit
fefef0f941
1 changed files with 1 additions and 3 deletions
|
|
@ -786,9 +786,7 @@ public final class DefaultTrackOutput implements TrackOutput {
|
|||
return C.POSITION_UNSET;
|
||||
}
|
||||
|
||||
int lastWriteIndex = (relativeWriteIndex == 0 ? capacity : relativeWriteIndex) - 1;
|
||||
long lastTimeUs = timesUs[lastWriteIndex];
|
||||
if (timeUs > lastTimeUs) {
|
||||
if (timeUs > largestQueuedTimestampUs) {
|
||||
return C.POSITION_UNSET;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue