mirror of
https://github.com/mpv-player/mpv
synced 2025-03-10 08:13:03 +00:00
player/audio: also adjust apts by audio speed in audio_start_ao
Fixes 7051e94e4b
This commit is contained in:
parent
b08822b8ce
commit
60abbb424b
@ -829,7 +829,8 @@ void audio_start_ao(struct MPContext *mpctx)
|
||||
double pts = MP_NOPTS_VALUE;
|
||||
if (!get_sync_pts(mpctx, &pts))
|
||||
return;
|
||||
double apts = playing_audio_pts(mpctx);
|
||||
double apts = written_audio_pts(mpctx);
|
||||
apts -= apts != MP_NOPTS_VALUE ? mpctx->audio_speed * ao_get_delay(mpctx->ao) : 0;
|
||||
if (pts != MP_NOPTS_VALUE && apts != MP_NOPTS_VALUE && pts < apts &&
|
||||
mpctx->video_status != STATUS_EOF)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user