diff options
author | wm4 <wm4@nowhere> | 2016-01-05 22:08:51 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-05 22:08:51 +0100 |
commit | 3d03298e86866ce86b4a489d78c7564a275f6a3c (patch) | |
tree | f6167345dbaf1bf7da24021cec9e221f93c602ee /player | |
parent | c1002f6a28dc7419c28b47826353e321733681e3 (diff) | |
download | mpv-3d03298e86866ce86b4a489d78c7564a275f6a3c.tar.bz2 mpv-3d03298e86866ce86b4a489d78c7564a275f6a3c.tar.xz |
audio: update outdated comment
Diffstat (limited to 'player')
-rw-r--r-- | player/audio.c | 7 |
1 files 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. |