summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-27 20:56:39 +0100
committerwm4 <wm4@nowhere>2015-10-27 20:56:39 +0100
commit3b95dd47d53d4d9b5a247f2dda550b5470e62b48 (patch)
tree58bcf93299c93e70e697d42a89cbe37475094854 /player
parent555ecbb70e80730a1203b91fd42da0927e1781dd (diff)
downloadmpv-3b95dd47d53d4d9b5a247f2dda550b5470e62b48.tar.bz2
mpv-3b95dd47d53d4d9b5a247f2dda550b5470e62b48.tar.xz
player: simplify audio sync pts calculation
This was done for symmetry with adjust_sync(). But mpctx->delay is always 0 at this point, so prefer slightly simpler code.
Diffstat (limited to 'player')
-rw-r--r--player/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/audio.c b/player/audio.c
index 3a516eb04f..ce72e3d0f1 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -464,7 +464,7 @@ static bool get_sync_samples(struct MPContext *mpctx, int *skip)
if (mpctx->video_status < STATUS_READY)
return false; // wait until we know a video PTS
if (mpctx->video_next_pts != MP_NOPTS_VALUE)
- sync_pts = mpctx->video_next_pts - (opts->audio_delay - mpctx->delay);
+ sync_pts = mpctx->video_next_pts - opts->audio_delay;
} else if (mpctx->hrseek_active) {
sync_pts = mpctx->hrseek_pts;
}