summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/player/video.c b/player/video.c
index adc34f4f62..f6ab3d44c9 100644
--- a/player/video.c
+++ b/player/video.c
@@ -1011,10 +1011,9 @@ static void handle_display_sync_frame(struct MPContext *mpctx,
// Intended number of additional display frames to drop (<0) or repeat (>0)
int drop_repeat = 0;
- // If we are too far ahead/behind, attempt to drop/repeat frames. In
- // particular, don't attempt to change speed for them.
+ // If we are too far ahead/behind, attempt to drop/repeat frames.
// Tolerate some desync to avoid frame dropping due to jitter.
- if (drop && fabs(av_diff) >= 0.080 && fabs(av_diff) / vsync >= 2)
+ if (drop && fabs(av_diff) >= 0.020 && fabs(av_diff) / vsync >= 1)
drop_repeat = -av_diff / vsync; // round towards 0
// We can only drop all frames at most. We can repeat much more frames,