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 | 4f6bf3eee22c25095fdd65a8b7731d8b68bfb31d (patch) | |
tree | 007f0af882577e18632009ace1402d6a5a3f8444 /libavfilter/af_axcorrelate.c | |
parent | 2329c33ce33013b9d0ee254c599c694effd7deb9 (diff) |
avfilter/af_axcorrelate: Store format in filter, remove query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/af_axcorrelate.c')
-rw-r--r-- | libavfilter/af_axcorrelate.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/libavfilter/af_axcorrelate.c b/libavfilter/af_axcorrelate.c index 1d9c805b29..8c5c429127 100644 --- a/libavfilter/af_axcorrelate.c +++ b/libavfilter/af_axcorrelate.c @@ -46,23 +46,6 @@ typedef struct AudioXCorrelateContext { int (*xcorrelate)(AVFilterContext *ctx, AVFrame *out); } AudioXCorrelateContext; -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 float mean_sum(const float *in, int size) { float mean_sum = 0.f; @@ -358,5 +341,5 @@ const AVFilter ff_af_axcorrelate = { .uninit = uninit, FILTER_INPUTS(inputs), FILTER_OUTPUTS(outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_FLTP), }; |