From 3d03298e86866ce86b4a489d78c7564a275f6a3c Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 5 Jan 2016 22:08:51 +0100 Subject: audio: update outdated comment --- player/audio.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/player/audio.c b/player/audio.c index 96345366fd..37d194833c 100644 --- a/player/audio.c +++ b/player/audio.c @@ -361,9 +361,10 @@ double written_audio_pts(struct MPContext *mpctx) if (a_pts == MP_NOPTS_VALUE) return MP_NOPTS_VALUE; - // d_audio->pts is the timestamp of the latest input packet with - // known pts that the decoder has decoded. d_audio->pts_bytes is - // the amount of bytes the decoder has written after that timestamp. + // d_audio->pts is the timestamp of the first sample of the latest frame + // the with a known pts that the decoder has returned. d_audio->pts_offset + // is the amount of samples the decoder has returned after that timestamp + // (includes the frame size). a_pts += d_audio->pts_offset / (double)in_format.rate; // Now a_pts hopefully holds the pts for end of audio from decoder. -- cgit v1.2.3