diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 13:10:11 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:01:03 +0200 |
commit | 53aa11a6f112d36afc59c74880f5602e7516fc09 (patch) | |
tree | cbee6cbe22f584c261d48d3472cfcf4bea40f0ee /libavfilter | |
parent | e597b83e25a01f17412debf11051edd506461669 (diff) | |
download | ffmpeg-53aa11a6f112d36afc59c74880f5602e7516fc09.tar.gz |
avfilter/af_superequalizer: Store format in filter, remove query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_superequalizer.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/libavfilter/af_superequalizer.c b/libavfilter/af_superequalizer.c index bf55f3ab94..aa73e92039 100644 --- a/libavfilter/af_superequalizer.c +++ b/libavfilter/af_superequalizer.c @@ -270,22 +270,6 @@ static av_cold int init(AVFilterContext *ctx) return equ_init(s, 14); } -static int query_formats(AVFilterContext *ctx) -{ - static const enum AVSampleFormat sample_fmts[] = { - AV_SAMPLE_FMT_FLTP, - AV_SAMPLE_FMT_NONE - }; - int ret = ff_set_common_all_channel_counts(ctx); - if (ret < 0) - return ret; - - if ((ret = ff_set_common_formats_from_list(ctx, sample_fmts)) < 0) - return ret; - - return ff_set_common_all_samplerates(ctx); -} - static int config_input(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; @@ -373,5 +357,5 @@ const AVFilter ff_af_superequalizer = { .uninit = uninit, FILTER_INPUTS(superequalizer_inputs), FILTER_OUTPUTS(superequalizer_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_FLTP), }; |