summaryrefslogtreecommitdiff
path: root/libavfilter/af_asubboost.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 13:10:11 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:01:02 +0200
commit8c35439a24be8310c75f4a672658e349a2068478 (patch)
tree4db7ea06218aec810614db07e3a6a1c731764f87 /libavfilter/af_asubboost.c
parent2f51b80f0fce6a2f6be3112e39bbd8064b1eb8ec (diff)
downloadffmpeg-8c35439a24be8310c75f4a672658e349a2068478.tar.gz
avfilter/af_asubboost: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/af_asubboost.c')
-rw-r--r--libavfilter/af_asubboost.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/libavfilter/af_asubboost.c b/libavfilter/af_asubboost.c
index 9e97cbf375..da3e68e841 100644
--- a/libavfilter/af_asubboost.c
+++ b/libavfilter/af_asubboost.c
@@ -44,23 +44,6 @@ typedef struct ASubBoostContext {
AVFrame *buffer;
} ASubBoostContext;
-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_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 int get_coeffs(AVFilterContext *ctx)
{
ASubBoostContext *s = ctx->priv;
@@ -238,7 +221,7 @@ const AVFilter ff_af_asubboost = {
.uninit = uninit,
FILTER_INPUTS(inputs),
FILTER_OUTPUTS(outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_DBLP),
.process_command = process_command,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
AVFILTER_FLAG_SLICE_THREADS,