mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:42:17 +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:
parent
e0f8d79772
commit
3274fabeb3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user