Unified · Split
| @@ -1347,23 +1347,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 1346 unmodified lines | ||
| 1347 | 1347 | av_audio_fifo_free(s->fifo); |
| 1348 | 1348 | } |
| 1349 | 1349 | |
| 1350 | −static int query_formats(AVFilterContext *ctx) | |
| 1351 | −{ | |
| 1352 | − static const enum AVSampleFormat sample_fmts[] = { | |
| 1353 | − AV_SAMPLE_FMT_FLTP, | |
| 1354 | − AV_SAMPLE_FMT_NONE | |
| 1355 | − }; | |
| 1356 | − int ret = ff_set_common_formats_from_list(ctx, sample_fmts); | |
| 1357 | − if (ret < 0) | |
| 1358 | − return ret; | |
| 1359 | − | |
| 1360 | − ret = ff_set_common_all_channel_counts(ctx); | |
| 1361 | − if (ret < 0) | |
| 1362 | − return ret; | |
| 1363 | − | |
| 1364 | − return ff_set_common_all_samplerates(ctx); | |
| 1365 | −} | |
| 1366 | − | |
| 1367 | 1350 | static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, |
| 1368 | 1351 | char *res, int res_len, int flags) |
| 1369 | 1352 | { |
| @@ -1418,7 +1401,7 @@ const AVFilter ff_af_afftdn = { · 48 unmodified lines | ||
| 1418 | 1401 | .uninit = uninit, |
| 1419 | 1402 | FILTER_INPUTS(inputs), |
| 1420 | 1403 | FILTER_OUTPUTS(outputs), |
| 1421 | − FILTER_QUERY_FUNC(query_formats), | |
| 1404 | + FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_FLTP), | |
| 1422 | 1405 | .process_command = process_command, |
| 1423 | 1406 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | |
| 1424 | 1407 | AVFILTER_FLAG_SLICE_THREADS, |