summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-14 18:53:00 +0200
committerwm4 <wm4@nowhere>2015-10-14 18:53:00 +0200
commit3274fabeb34b39c230cbf5d20006de87a97d97f3 (patch)
tree22dcfdc03bda8b88180172db6aa0a5ecf6221940 /player/video.c
parente0f8d797720ed00a731d8fb8d41995501609c34b (diff)
downloadmpv-3274fabeb34b39c230cbf5d20006de87a97d97f3.tar.bz2
mpv-3274fabeb34b39c230cbf5d20006de87a97d97f3.tar.xz
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.
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c2
1 files changed, 1 insertions, 1 deletions
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) {