Small fix to the frame timing code

This commit is contained in:
Cameron Gutman 2014-11-19 10:43:00 -08:00
parent 4e088f6183
commit 7ad87bd3ee

View File

@ -266,7 +266,7 @@ public class MediaCodecDecoderRenderer implements VideoDecoderRenderer {
// Add delta time to the totals (excluding probable outliers)
long delta = System.currentTimeMillis()-(presentationTimeUs/1000);
if (delta > 5 && delta < 300) {
if (delta >= 0 && delta < 300) {
decoderTimeMs += delta;
totalTimeMs += delta;
}