summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/video.c b/player/video.c
index 563e573eb7..5f0809791a 100644
--- a/player/video.c
+++ b/player/video.c
@@ -964,9 +964,9 @@ static void handle_display_sync_frame(struct MPContext *mpctx,
if (vsync <= 0)
return;
- double adjusted_duration = mpctx->past_frames[0].approx_duration;
+ double adjusted_duration = MPMAX(0, mpctx->past_frames[0].approx_duration);
adjusted_duration /= opts->playback_speed;
- if (adjusted_duration <= 0.001 || adjusted_duration > 0.5)
+ if (adjusted_duration > 0.5)
return;
mpctx->speed_factor_v = 1.0;