mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:42:17 +00:00
player: fix display-sync A/V calculation on high playback speeds
This is all kinds of stupid - update_avsync_after_frame() will multiply this value with the speed at a later point, and we only update this field for this function. (This should be refactored.)
This commit is contained in:
parent
aaec2aba38
commit
c24921d56b
@ -1037,6 +1037,7 @@ static void handle_display_sync_frame(struct MPContext *mpctx,
|
|||||||
// align frame timings on the vsync boundaries. This is unavoidable, and
|
// align frame timings on the vsync boundaries. This is unavoidable, and
|
||||||
// for the sake of the video sync calculations we pretend it's perfect.
|
// for the sake of the video sync calculations we pretend it's perfect.
|
||||||
mpctx->time_frame -= mpctx->display_sync_error;
|
mpctx->time_frame -= mpctx->display_sync_error;
|
||||||
|
mpctx->time_frame /= opts->playback_speed * video_speed_correction;
|
||||||
|
|
||||||
mpctx->speed_factor_v = video_speed_correction;
|
mpctx->speed_factor_v = video_speed_correction;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user