From 81172b5e3ac0d3130ff7b639ed7efed5baa1195c Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 2 Jan 2020 17:24:01 +0100 Subject: avfilter/af_dynaudnorm: fix previous commit We still need to analyze frame for amplification at EOF. --- libavfilter/af_dynaudnorm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libavfilter/af_dynaudnorm.c') diff --git a/libavfilter/af_dynaudnorm.c b/libavfilter/af_dynaudnorm.c index e170a5b2e5..4b9153e418 100644 --- a/libavfilter/af_dynaudnorm.c +++ b/libavfilter/af_dynaudnorm.c @@ -686,14 +686,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) ret = ff_filter_frame(outlink, out); } - if (!s->eof) { - av_frame_make_writable(in); + av_frame_make_writable(in); + if (!s->eof) cqueue_enqueue(s->is_enabled, !ctx->is_disabled); - analyze_frame(s, in); + analyze_frame(s, in); + if (!s->eof) ff_bufqueue_add(ctx, &s->queue, in); - } else { + else av_frame_free(&in); - } return ret; } -- cgit v1.2.3