mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Small fix to the frame timing code
This commit is contained in:
parent
4e088f6183
commit
7ad87bd3ee
@ -266,7 +266,7 @@ public class MediaCodecDecoderRenderer implements VideoDecoderRenderer {
|
|||||||
|
|
||||||
// Add delta time to the totals (excluding probable outliers)
|
// Add delta time to the totals (excluding probable outliers)
|
||||||
long delta = System.currentTimeMillis()-(presentationTimeUs/1000);
|
long delta = System.currentTimeMillis()-(presentationTimeUs/1000);
|
||||||
if (delta > 5 && delta < 300) {
|
if (delta >= 0 && delta < 300) {
|
||||||
decoderTimeMs += delta;
|
decoderTimeMs += delta;
|
||||||
totalTimeMs += delta;
|
totalTimeMs += delta;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user