player/audio: also adjust apts by audio speed in audio_start_ao
Fixes 7051e94e4b
This commit is contained in:
1 parent
b08822b8ce
commit
60abbb424b
1 file changed
+2
-1
+2
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user