From c24921d56b08116965ac6aed4d334342eb6b30d1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 27 Oct 2015 20:56:49 +0100 Subject: player: fix display-sync A/V calculation on high playback speeds This is all kinds of stupid - update_avsync_after_frame() will multiply this value with the speed at a later point, and we only update this field for this function. (This should be refactored.) --- player/video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/player/video.c b/player/video.c index 3ea5607b35..f4affbd51d 100644 --- a/player/video.c +++ b/player/video.c @@ -1037,6 +1037,7 @@ static void handle_display_sync_frame(struct MPContext *mpctx, // align frame timings on the vsync boundaries. This is unavoidable, and // for the sake of the video sync calculations we pretend it's perfect. mpctx->time_frame -= mpctx->display_sync_error; + mpctx->time_frame /= opts->playback_speed * video_speed_correction; mpctx->speed_factor_v = video_speed_correction; -- cgit v1.2.3