diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 12:28:23 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:01:02 +0200 |
commit | f9c931cf1b8c6256b568c6970ef3a03e9cdc3f12 (patch) | |
tree | 8da5229f957233d2d43c93dd45a3ab36e2c3d048 /libavfilter/af_acrossover.c | |
parent | e61393d006c628b8d33c36b28d28d8ccae0f71bf (diff) | |
download | ffmpeg-f9c931cf1b8c6256b568c6970ef3a03e9cdc3f12.tar.gz |
avfilter/af_crossover: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/af_acrossover.c')
-rw-r--r-- | libavfilter/af_acrossover.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/libavfilter/af_acrossover.c b/libavfilter/af_acrossover.c index 1ba847d31b..9c00e1ddc2 100644 --- a/libavfilter/af_acrossover.c +++ b/libavfilter/af_acrossover.c @@ -301,25 +301,6 @@ static void calc_q_factors(int order, double *q) q[i] = 1. / (-2. * cos(M_PI * (2. * (i + 1) + n - 1.) / (2. * n))); } -static int query_formats(AVFilterContext *ctx) -{ - static const enum AVSampleFormat sample_fmts[] = { - AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_DBLP, - AV_SAMPLE_FMT_NONE - }; - int ret; - - ret = ff_set_common_all_channel_counts(ctx); - if (ret < 0) - return ret; - - ret = ff_set_common_formats_from_list(ctx, sample_fmts); - if (ret < 0) - return ret; - - return ff_set_common_all_samplerates(ctx); -} - #define BIQUAD_PROCESS(name, type) \ static void biquad_process_## name(const type *const c, \ type *b, \ @@ -559,9 +540,9 @@ const AVFilter ff_af_acrossover = { .priv_class = &acrossover_class, .init = init, .uninit = uninit, - FILTER_QUERY_FUNC(query_formats), FILTER_INPUTS(inputs), .outputs = NULL, + FILTER_SAMPLEFMTS(AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_DBLP), .flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS | AVFILTER_FLAG_SLICE_THREADS, }; |