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 | 0c30dc0f9ed029f71cb1fa56cf119b41e0daa483 (patch) | |
tree | 479490f1746d77775ece445ea15548bd943be46d /libavfilter | |
parent | e74acd5771f65b6da066067bc3ec4ff5d6315782 (diff) | |
download | ffmpeg-0c30dc0f9ed029f71cb1fa56cf119b41e0daa483.tar.gz |
avfilter/af_mcompand: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_mcompand.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/libavfilter/af_mcompand.c b/libavfilter/af_mcompand.c index 5b689caa49..90cfda38c9 100644 --- a/libavfilter/af_mcompand.c +++ b/libavfilter/af_mcompand.c @@ -122,23 +122,6 @@ static av_cold void uninit(AVFilterContext *ctx) av_freep(&s->bands); } -static int query_formats(AVFilterContext *ctx) -{ - static const enum AVSampleFormat sample_fmts[] = { - AV_SAMPLE_FMT_DBLP, - 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 count_items(char *item_str, int *nb_items, char delimiter) { char *p; @@ -659,5 +642,5 @@ const AVFilter ff_af_mcompand = { .uninit = uninit, FILTER_INPUTS(mcompand_inputs), FILTER_OUTPUTS(mcompand_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_DBLP), }; |