mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avfilter/af_alimiter: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b163ecc3db
commit
d6bf86843d
@ -276,23 +276,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
return ff_filter_frame(outlink, out);
|
||||
}
|
||||
|
||||
static int query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
static const enum AVSampleFormat sample_fmts[] = {
|
||||
AV_SAMPLE_FMT_DBL,
|
||||
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 int config_input(AVFilterLink *inlink)
|
||||
{
|
||||
AVFilterContext *ctx = inlink->dst;
|
||||
@ -355,5 +338,5 @@ const AVFilter ff_af_alimiter = {
|
||||
.uninit = uninit,
|
||||
FILTER_INPUTS(alimiter_inputs),
|
||||
FILTER_OUTPUTS(alimiter_outputs),
|
||||
FILTER_QUERY_FUNC(query_formats),
|
||||
FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_DBL),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user