[FFmpeg-devel] [PATCH 042/218] avfilter/af_firequalizer: Store format in filter, remove query func
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Sep 30 16:39:43 EEST 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavfilter/af_firequalizer.c | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/libavfilter/af_firequalizer.c b/libavfilter/af_firequalizer.c
index 83dc3ce7ed..568b78117a 100644
--- a/libavfilter/af_firequalizer.c
+++ b/libavfilter/af_firequalizer.c
@@ -180,23 +180,6 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep(&s->gain_entry_cmd);
}
-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;
-
- ret = ff_set_common_formats_from_list(ctx, sample_fmts);
- if (ret < 0)
- return ret;
-
- return ff_set_common_all_samplerates(ctx);
-}
-
static void fast_convolute(FIREqualizerContext *av_restrict s, const float *av_restrict kernel_buf, float *av_restrict conv_buf,
OverlapIndex *av_restrict idx, float *av_restrict data, int nsamples)
{
@@ -962,6 +945,6 @@ const AVFilter ff_af_firequalizer = {
.priv_size = sizeof(FIREqualizerContext),
FILTER_INPUTS(firequalizer_inputs),
FILTER_OUTPUTS(firequalizer_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_FLTP),
.priv_class = &firequalizer_class,
};
--
2.30.2
More information about the ffmpeg-devel
mailing list