diff options
Diffstat (limited to 'player/audio.c')
-rw-r--r-- | player/audio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/player/audio.c b/player/audio.c index df80fcd161..3a691fed09 100644 --- a/player/audio.c +++ b/player/audio.c @@ -329,8 +329,8 @@ static bool get_sync_samples(struct MPContext *mpctx, int *skip) double sync_pts = MP_NOPTS_VALUE; if (sync_to_video) { - if (mpctx->video_pts != MP_NOPTS_VALUE) { - sync_pts = mpctx->video_pts; + if (mpctx->video_next_pts != MP_NOPTS_VALUE) { + sync_pts = mpctx->video_next_pts; } else if (mpctx->video_status < STATUS_READY) { return false; // wait until we know a video PTS } |