[FFmpeg-cvslog] avfilter/af_afftdn: switch to internal timeline

Paul B Mahol git at videolan.org
Sun Oct 3 14:07:58 EEST 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Oct  3 12:22:07 2021 +0200| [8d13927340be44cd4e9367a20d7f7c6fca144cb3] | committer: Paul B Mahol

avfilter/af_afftdn: switch to internal timeline

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8d13927340be44cd4e9367a20d7f7c6fca144cb3
---

 libavfilter/af_afftdn.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/af_afftdn.c b/libavfilter/af_afftdn.c
index 5e9cefcfc1..3a3384d450 100644
--- a/libavfilter/af_afftdn.c
+++ b/libavfilter/af_afftdn.c
@@ -1165,6 +1165,7 @@ static int output_frame(AVFilterLink *inlink)
     AVFilterContext *ctx = inlink->dst;
     AVFilterLink *outlink = ctx->outputs[0];
     AudioFFTDeNoiseContext *s = ctx->priv;
+    const int output_mode = ctx->is_disabled ? IN_MODE : s->output_mode;
     AVFrame *out = NULL, *in = NULL;
     ThreadData td;
     int ret = 0;
@@ -1238,7 +1239,7 @@ static int output_frame(AVFilterLink *inlink)
         float *orig = (float *)in->extended_data[ch];
         float *dst = (float *)out->extended_data[ch];
 
-        switch (s->output_mode) {
+        switch (output_mode) {
         case IN_MODE:
             for (int m = 0; m < s->sample_advance; m++)
                 dst[m] = orig[m];
@@ -1419,6 +1420,6 @@ const AVFilter ff_af_afftdn = {
     FILTER_INPUTS(inputs),
     FILTER_OUTPUTS(outputs),
     .process_command = process_command,
-    .flags           = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC |
+    .flags           = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
                        AVFILTER_FLAG_SLICE_THREADS,
 };



More information about the ffmpeg-cvslog mailing list