diff options
author | wm4 <wm4@nowhere> | 2015-10-14 18:53:00 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-10-14 18:53:00 +0200 |
commit | 3274fabeb34b39c230cbf5d20006de87a97d97f3 (patch) | |
tree | 22dcfdc03bda8b88180172db6aa0a5ecf6221940 | |
parent | e0f8d797720ed00a731d8fb8d41995501609c34b (diff) |
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.
-rw-r--r-- | player/video.c | 2 |
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) { |