diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-10-03 12:22:07 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-10-03 13:06:44 +0200 |
commit | 8d13927340be44cd4e9367a20d7f7c6fca144cb3 (patch) | |
tree | bfc8900a84f53203da4647c2460dd694b1b8f9bc | |
parent | a97cad8b0b9a46d8ca348b56e012ecf239f8aa74 (diff) | |
download | ffmpeg-8d13927340be44cd4e9367a20d7f7c6fca144cb3.tar.gz |
avfilter/af_afftdn: switch to internal timeline
-rw-r--r-- | libavfilter/af_afftdn.c | 5 |
1 files 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, }; |