From c4822228b0de47eddac93b4d4e2b2a9c457b2f80 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 7 Oct 2024 16:02:15 +0200 Subject: [PATCH] lavfi/vf_il: switch to query_func2() --- libavfilter/vf_il.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_il.c b/libavfilter/vf_il.c index 9a3a9d47a9..5e5d4c16e8 100644 --- a/libavfilter/vf_il.c +++ b/libavfilter/vf_il.c @@ -83,11 +83,14 @@ static const AVOption il_options[] = { AVFILTER_DEFINE_CLASS(il); -static int query_formats(AVFilterContext *ctx) +static int query_formats(const AVFilterContext *ctx, + AVFilterFormatsConfig **cfg_in, + AVFilterFormatsConfig **cfg_out) { int reject_flags = AV_PIX_FMT_FLAG_PAL | AV_PIX_FMT_FLAG_HWACCEL; - return ff_set_common_formats(ctx, ff_formats_pixdesc_filter(0, reject_flags)); + return ff_set_common_formats2(ctx, cfg_in, cfg_out, + ff_formats_pixdesc_filter(0, reject_flags)); } static int config_input(AVFilterLink *inlink) @@ -191,7 +194,7 @@ const AVFilter ff_vf_il = { .priv_size = sizeof(IlContext), FILTER_INPUTS(inputs), FILTER_OUTPUTS(ff_video_default_filterpad), - FILTER_QUERY_FUNC(query_formats), + FILTER_QUERY_FUNC2(query_formats), .priv_class = &il_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, .process_command = ff_filter_process_command,