From 3274fabeb34b39c230cbf5d20006de87a97d97f3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 14 Oct 2015 18:53:00 +0200 Subject: player: fix an adjustment in display sync mode This adjustment is supposed to improve the audio speed calculation in case of unexpected desync. The flipped sign made it actually worse, although the total impact of this bug was very minor. --- player/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index 7bccdefb34..595265dc74 100644 --- a/player/video.c +++ b/player/video.c @@ -962,7 +962,7 @@ static void handle_display_sync_frame(struct MPContext *mpctx, // particular, don't attempt to change speed for them. if (drop) { drop_repeat = -av_diff / vsync; // round towards 0 - av_diff -= drop_repeat * vsync; + av_diff += drop_repeat * vsync; } if (resample) { -- cgit v1.2.3