aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_afir.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-02-22 12:04:35 +0100
committerPaul B Mahol <onemda@gmail.com>2022-02-22 13:25:21 +0100
commitc337b0f826ea1ca3b52a1e1d264871e37b660e87 (patch)
tree8afbb78b59c186ee878db3341c1ce5046c0414e3 /libavfilter/af_afir.c
parenta473e11e324550c7a6c2aaa3c47aab602ce852c5 (diff)
downloadffmpeg-c337b0f826ea1ca3b52a1e1d264871e37b660e87.tar.gz
avfilter/af_afir: remove pts rewriting code
This is not needed at all.
Diffstat (limited to 'libavfilter/af_afir.c')
-rw-r--r--libavfilter/af_afir.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavfilter/af_afir.c b/libavfilter/af_afir.c
index 7690218ff4..86ce503e7a 100644
--- a/libavfilter/af_afir.c
+++ b/libavfilter/af_afir.c
@@ -220,17 +220,12 @@ static int fir_frame(AudioFIRContext *s, AVFrame *in, AVFilterLink *outlink)
av_frame_free(&in);
return AVERROR(ENOMEM);
}
+ out->pts = in->pts;
- if (s->pts == AV_NOPTS_VALUE)
- s->pts = in->pts;
s->in = in;
ff_filter_execute(ctx, fir_channels, out, NULL,
FFMIN(outlink->channels, ff_filter_get_nb_threads(ctx)));
- out->pts = s->pts;
- if (s->pts != AV_NOPTS_VALUE)
- s->pts += av_rescale_q(out->nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base);
-
av_frame_free(&in);
s->in = NULL;
@@ -773,7 +768,6 @@ static int config_output(AVFilterLink *outlink)
s->nb_channels = outlink->channels;
s->nb_coef_channels = ctx->inputs[1 + s->selir]->channels;
- s->pts = AV_NOPTS_VALUE;
return 0;
}