aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/f_streamselect.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-10-01 12:15:18 +0200
committerAnton Khirnov <anton@khirnov.net>2024-10-04 10:03:34 +0200
commitf10986a5ec25df772e1af7ce1c9011a1a4ed2893 (patch)
tree8fa6898fd304f536d1a6a2303e8a781475a1c1ec /libavfilter/f_streamselect.c
parenta6f579544aeaf28d4028ad64a23abf074f7e20ad (diff)
downloadffmpeg-f10986a5ec25df772e1af7ce1c9011a1a4ed2893.tar.gz
lavfi/f_streamselect: drop useless query_formats() callback
It achieves the same effect as ff_default_query_formats(), which gets called implicitly.
Diffstat (limited to 'libavfilter/f_streamselect.c')
-rw-r--r--libavfilter/f_streamselect.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/libavfilter/f_streamselect.c b/libavfilter/f_streamselect.c
index 4ff4e856ea..2afd22d4a3 100644
--- a/libavfilter/f_streamselect.c
+++ b/libavfilter/f_streamselect.c
@@ -296,31 +296,10 @@ static av_cold void uninit(AVFilterContext *ctx)
ff_framesync_uninit(&s->fs);
}
-static int query_formats(AVFilterContext *ctx)
-{
- AVFilterFormats *formats;
- int ret, i;
-
- for (i = 0; i < ctx->nb_inputs; i++) {
- formats = ff_all_formats(ctx->inputs[i]->type);
- if ((ret = ff_set_common_formats(ctx, formats)) < 0)
- return ret;
-
- if (ctx->inputs[i]->type == AVMEDIA_TYPE_AUDIO) {
- if ((ret = ff_set_common_all_samplerates (ctx)) < 0 ||
- (ret = ff_set_common_all_channel_counts(ctx)) < 0)
- return ret;
- }
- }
-
- return 0;
-}
-
const AVFilter ff_vf_streamselect = {
.name = "streamselect",
.description = NULL_IF_CONFIG_SMALL("Select video streams"),
.init = init,
- FILTER_QUERY_FUNC(query_formats),
.process_command = process_command,
.uninit = uninit,
.activate = activate,
@@ -334,7 +313,6 @@ const AVFilter ff_af_astreamselect = {
.description = NULL_IF_CONFIG_SMALL("Select audio streams"),
.priv_class = &streamselect_class,
.init = init,
- FILTER_QUERY_FUNC(query_formats),
.process_command = process_command,
.uninit = uninit,
.activate = activate,