mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-30 11:24:17 +00:00
avfilter/af_superequalizer: Store format in filter, remove query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
e597b83e25
commit
53aa11a6f1
@ -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),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user