summaryrefslogtreecommitdiffstats
path: root/audio/decode/ad_mpg123.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-24 15:27:31 +0200
committerwm4 <wm4@nowhere>2014-07-24 15:27:31 +0200
commit69eb0563339e99a83146d0252478b58e265cba04 (patch)
tree092ce8649dd0b7d6263171290601ac5084ee4581 /audio/decode/ad_mpg123.c
parentfc28e4af4d77a2aa29857471f0de1dc38996cc20 (diff)
downloadmpv-69eb0563339e99a83146d0252478b58e265cba04.tar.bz2
mpv-69eb0563339e99a83146d0252478b58e265cba04.tar.xz
audio: fix timestamps
Accidentally broken in b6af44d3. For ad_lavc (and in general), the PTS was not updated correctly when filtering only parts of audio frames, and for ad_mpg123 and ad_spdif the PTS was additionally offset by the frame size. This could lead to incorrect time display, and possibly broken A/V sync.
Diffstat (limited to 'audio/decode/ad_mpg123.c')
-rw-r--r--audio/decode/ad_mpg123.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/audio/decode/ad_mpg123.c b/audio/decode/ad_mpg123.c
index f96a5a8036..dc3ec69531 100644
--- a/audio/decode/ad_mpg123.c
+++ b/audio/decode/ad_mpg123.c
@@ -257,7 +257,6 @@ static int decode_packet(struct dec_audio *da)
int got_samples = bytes / con->sample_size;
da->decoded.planes[0] = audio;
da->decoded.samples = got_samples;
- da->pts_offset += got_samples;
update_info(da);
return 0;