1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00

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.
This commit is contained in:
wm4 2015-10-14 18:53:00 +02:00
parent e0f8d79772
commit 3274fabeb3

View File

@ -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) {