diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-01-02 17:24:01 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-01-02 17:24:01 +0100 |
commit | 81172b5e3ac0d3130ff7b639ed7efed5baa1195c (patch) | |
tree | 1200cc0672180d0b9a68754985465212af526c0c /libavfilter/af_dynaudnorm.c | |
parent | ed02563ce0c3df823e96af1178bc566cb7eaac60 (diff) | |
download | ffmpeg-81172b5e3ac0d3130ff7b639ed7efed5baa1195c.tar.gz |
avfilter/af_dynaudnorm: fix previous commit
We still need to analyze frame for amplification at EOF.
Diffstat (limited to 'libavfilter/af_dynaudnorm.c')
-rw-r--r-- | libavfilter/af_dynaudnorm.c | 10 |
1 files 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; } |