Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -1165,6 +1165,7 @@ static int output_frame(AVFilterLink *inlink) · 1164 unmodified lines | |||
| 1165 | AVFilterContext *ctx = inlink->dst; | 1165 | AVFilterContext *ctx = inlink->dst; |
| 1166 | AVFilterLink *outlink = ctx->outputs[0]; | 1166 | AVFilterLink *outlink = ctx->outputs[0]; |
| 1167 | AudioFFTDeNoiseContext *s = ctx->priv; | 1167 | AudioFFTDeNoiseContext *s = ctx->priv; |
| 1168 | const int output_mode = ctx->is_disabled ? IN_MODE : s->output_mode; | ||
| 1168 | AVFrame *out = NULL, *in = NULL; | 1169 | AVFrame *out = NULL, *in = NULL; |
| 1169 | ThreadData td; | 1170 | ThreadData td; |
| 1170 | int ret = 0; | 1171 | int ret = 0; |
| @@ -1238,7 +1239,7 @@ static int output_frame(AVFilterLink *inlink) · 67 unmodified lines | |||
| 1238 | float *orig = (float *)in->extended_data[ch]; | 1239 | float *orig = (float *)in->extended_data[ch]; |
| 1239 | float *dst = (float *)out->extended_data[ch]; | 1240 | float *dst = (float *)out->extended_data[ch]; |
| 1240 | 1241 | ||
| 1241 | switch (s->output_mode) { | 1242 | switch (output_mode) { |
| 1242 | case IN_MODE: | 1243 | case IN_MODE: |
| 1243 | for (int m = 0; m < s->sample_advance; m++) | 1244 | for (int m = 0; m < s->sample_advance; m++) |
| 1244 | dst[m] = orig[m]; | 1245 | dst[m] = orig[m]; |
| @@ -1419,6 +1420,6 @@ const AVFilter ff_af_afftdn = { · 174 unmodified lines | |||
| 1419 | FILTER_INPUTS(inputs), | 1420 | FILTER_INPUTS(inputs), |
| 1420 | FILTER_OUTPUTS(outputs), | 1421 | FILTER_OUTPUTS(outputs), |
| 1421 | .process_command = process_command, | 1422 | .process_command = process_command, |
| 1422 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | | 1423 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | |
| 1423 | AVFILTER_FLAG_SLICE_THREADS, | 1424 | AVFILTER_FLAG_SLICE_THREADS, |
| 1424 | }; | 1425 | }; |