summaryrefslogtreecommitdiff
path: root/libavfilter/f_reverse.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 23:45:45 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-02 16:21:58 +0200
commit3a82bb8128773b82f50194cad6b3f3405084f59c (patch)
treecb547a83c65e57407a27410781e25c28bbc51c8a /libavfilter/f_reverse.c
parentc1f7e628101be1e99e01fe8df915e0ed2fff959b (diff)
downloadffmpeg-3a82bb8128773b82f50194cad6b3f3405084f59c.tar.gz
avfilter/f_reverse: Don't use redundant query_formats function
Said function did exactly what ff_default_query_formats() does for audio; so just remove it, so that ff_default_query_formats() will be called. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/f_reverse.c')
-rw-r--r--libavfilter/f_reverse.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libavfilter/f_reverse.c b/libavfilter/f_reverse.c
index 82f0c705a2..0398aa9cb0 100644
--- a/libavfilter/f_reverse.c
+++ b/libavfilter/f_reverse.c
@@ -145,19 +145,6 @@ const AVFilter ff_vf_reverse = {
#if CONFIG_AREVERSE_FILTER
-static int query_formats(AVFilterContext *ctx)
-{
- int ret = ff_set_common_all_channel_counts(ctx);
- if (ret < 0)
- return ret;
-
- ret = ff_set_common_formats(ctx, ff_all_formats(AVMEDIA_TYPE_AUDIO));
- if (ret < 0)
- return ret;
-
- return ff_set_common_all_samplerates(ctx);
-}
-
static void reverse_samples_planar(AVFrame *out)
{
for (int p = 0; p < out->channels; p++) {
@@ -283,7 +270,6 @@ static const AVFilterPad areverse_outputs[] = {
const AVFilter ff_af_areverse = {
.name = "areverse",
.description = NULL_IF_CONFIG_SMALL("Reverse an audio clip."),
- .query_formats = query_formats,
.priv_size = sizeof(ReverseContext),
.init = init,
.uninit = uninit,