From 7c181e5b9b3e429d3202a6d28264a36cbd7d9699 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 22 Feb 2016 20:13:31 +0100 Subject: audio: make mp_audio_skip_samples() adjust the PTS Slight simplification/cleanup. --- audio/decode/ad_lavc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'audio/decode/ad_lavc.c') 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); -- cgit v1.2.3