diff options
author | wm4 <wm4@nowhere> | 2016-02-22 20:13:31 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-22 20:13:31 +0100 |
commit | 7c181e5b9b3e429d3202a6d28264a36cbd7d9699 (patch) | |
tree | db259604f6c0c1c8e0a2debadde9443159c0368d /audio/decode | |
parent | 9ee340c3af5c23c2ac877b6559e11bd70c3052ac (diff) | |
download | mpv-7c181e5b9b3e429d3202a6d28264a36cbd7d9699.tar.bz2 mpv-7c181e5b9b3e429d3202a6d28264a36cbd7d9699.tar.xz |
audio: make mp_audio_skip_samples() adjust the PTS
Slight simplification/cleanup.
Diffstat (limited to 'audio/decode')
-rw-r--r-- | audio/decode/ad_lavc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c index 64095b0018..c30aff7fd5 100644 --- a/audio/decode/ad_lavc.c +++ b/audio/decode/ad_lavc.c @@ -254,8 +254,6 @@ static int decode_packet(struct dec_audio *da, struct demux_packet *mpkt, uint32_t skip = MPMIN(priv->skip_samples, mpframe->samples); if (skip) { mp_audio_skip_samples(mpframe, skip); - if (mpframe->pts != MP_NOPTS_VALUE) - mpframe->pts += skip / (double)mpframe->rate; priv->skip_samples -= skip; } uint32_t trim = MPMIN(priv->trim_samples, mpframe->samples); |