From 332960922a57dd223e3832fb3e9a83734e472651 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 17 Oct 2014 15:54:07 -0700 Subject: [PATCH] Small addendum to the timestamp fix --- src/com/limelight/binding/video/MediaCodecDecoderRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/limelight/binding/video/MediaCodecDecoderRenderer.java b/src/com/limelight/binding/video/MediaCodecDecoderRenderer.java index 6281f27c..174a7196 100644 --- a/src/com/limelight/binding/video/MediaCodecDecoderRenderer.java +++ b/src/com/limelight/binding/video/MediaCodecDecoderRenderer.java @@ -365,7 +365,7 @@ public class MediaCodecDecoderRenderer implements VideoDecoderRenderer { } long timestampUs = currentTime * 1000; - if (timestampUs == lastTimestampUs) { + if (timestampUs <= lastTimestampUs) { // We can't submit multiple buffers with the same timestamp // so bump it up by one before queuing timestampUs = lastTimestampUs + 1;