]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/af_dynaudnorm: fix previous commit
authorPaul B Mahol <onemda@gmail.com>
Thu, 2 Jan 2020 16:24:01 +0000 (17:24 +0100)
committerPaul B Mahol <onemda@gmail.com>
Thu, 2 Jan 2020 16:24:01 +0000 (17:24 +0100)
We still need to analyze frame for amplification at EOF.

libavfilter/af_dynaudnorm.c

index e170a5b2e58a76b3fe798937b4099a9d4236dff3..4b9153e41890d05f16e7d40795dbcfa82e4a5c71 100644 (file)
@@ -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;
 }