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:02 +0200 |
commit | 06ff6dad44ed3bda3270f8d72d035bd840103ca5 (patch) | |
tree | c5f2785848f14fb67a5f2381e2ea611202fae867 | |
parent | d8a5b90a082f0f12f30db48e93f579191806099c (diff) | |
download | ffmpeg-06ff6dad44ed3bda3270f8d72d035bd840103ca5.tar.gz |
avfilter/af_anlmdn: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/af_anlmdn.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/libavfilter/af_anlmdn.c b/libavfilter/af_anlmdn.c index af6a6a69e9..141e5f398e 100644 --- a/libavfilter/af_anlmdn.c +++ b/libavfilter/af_anlmdn.c @@ -93,23 +93,6 @@ static const AVOption anlmdn_options[] = { AVFILTER_DEFINE_CLASS(anlmdn); -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_formats_from_list(ctx, sample_fmts); - if (ret < 0) - return ret; - - ret = ff_set_common_all_channel_counts(ctx); - if (ret < 0) - return ret; - - return ff_set_common_all_samplerates(ctx); -} - static float compute_distance_ssd_c(const float *f1, const float *f2, ptrdiff_t K) { float distance = 0.; @@ -407,7 +390,7 @@ const AVFilter ff_af_anlmdn = { .uninit = uninit, FILTER_INPUTS(inputs), FILTER_OUTPUTS(outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_FLTP), .process_command = process_command, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, |