Skip to content

Commit 3329609

Browse files
committed
Small addendum to the timestamp fix
1 parent ac03f73 commit 3329609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/limelight/binding/video/MediaCodecDecoderRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ private void submitDecodeUnit(DecodeUnit decodeUnit, ByteBuffer buf, int inputBu
365365
}
366366

367367
long timestampUs = currentTime * 1000;
368-
if (timestampUs == lastTimestampUs) {
368+
if (timestampUs <= lastTimestampUs) {
369369
// We can't submit multiple buffers with the same timestamp
370370
// so bump it up by one before queuing
371371
timestampUs = lastTimestampUs + 1;

0 commit comments

Comments
 (0)