Small addendum to the timestamp fix

This commit is contained in:
Cameron Gutman 2014-10-17 15:54:07 -07:00
parent ac03f73cf9
commit 332960922a

View File

@ -365,7 +365,7 @@ public class MediaCodecDecoderRenderer implements VideoDecoderRenderer {
} }
long timestampUs = currentTime * 1000; long timestampUs = currentTime * 1000;
if (timestampUs == lastTimestampUs) { if (timestampUs <= lastTimestampUs) {
// We can't submit multiple buffers with the same timestamp // We can't submit multiple buffers with the same timestamp
// so bump it up by one before queuing // so bump it up by one before queuing
timestampUs = lastTimestampUs + 1; timestampUs = lastTimestampUs + 1;