[FFmpeg-cvslog] avfilter/af_dynaudnorm: fix previous commit
Paul B Mahol
git at videolan.org
Thu Jan 2 18:33:45 EET 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Jan 2 17:24:01 2020 +0100| [81172b5e3ac0d3130ff7b639ed7efed5baa1195c] | committer: Paul B Mahol
avfilter/af_dynaudnorm: fix previous commit
We still need to analyze frame for amplification at EOF.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=81172b5e3ac0d3130ff7b639ed7efed5baa1195c
---
libavfilter/af_dynaudnorm.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
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;
}
More information about the ffmpeg-cvslog
mailing list