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 | b8f74ee57a6e9e75a507adcddf30f84dd4a39d39 (patch) | |
tree | cce95f172810a74e42e76043b6765c58ab48ba6b /libavfilter/af_atempo.c | |
parent | d1971efc99cc3d3d0c12f05906b557fe0b7f9cf0 (diff) | |
download | ffmpeg-b8f74ee57a6e9e75a507adcddf30f84dd4a39d39.tar.gz |
avfilter/af_atempo: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/af_atempo.c')
-rw-r--r-- | libavfilter/af_atempo.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/libavfilter/af_atempo.c b/libavfilter/af_atempo.c index 6376cdc03e..e9a6da7970 100644 --- a/libavfilter/af_atempo.c +++ b/libavfilter/af_atempo.c @@ -993,8 +993,6 @@ static av_cold void uninit(AVFilterContext *ctx) yae_release_buffers(atempo); } -static int query_formats(AVFilterContext *ctx) -{ // WSOLA necessitates an internal sliding window ring buffer // for incoming audio stream. // @@ -1009,16 +1007,6 @@ static int query_formats(AVFilterContext *ctx) 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_props(AVFilterLink *inlink) { @@ -1193,5 +1181,5 @@ const AVFilter ff_af_atempo = { .priv_class = &atempo_class, FILTER_INPUTS(atempo_inputs), FILTER_OUTPUTS(atempo_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_SAMPLEFMTS_ARRAY(sample_fmts), }; |