From a18418f39d2e5fcf69fadcabc37203fcb7cff765 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 15 Oct 2024 11:24:35 +0200 Subject: [PATCH] lavfi/vf_swapuv: convert to query_func2() --- libavfilter/vf_swapuv.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_swapuv.c b/libavfilter/vf_swapuv.c index 5c7c69494e..866d0824f4 100644 --- a/libavfilter/vf_swapuv.c +++ b/libavfilter/vf_swapuv.c @@ -67,7 +67,9 @@ static int is_planar_yuv(const AVPixFmtDescriptor *desc) return 1; } -static int query_formats(AVFilterContext *ctx) +static int query_formats(const AVFilterContext *ctx, + AVFilterFormatsConfig **cfg_in, + AVFilterFormatsConfig **cfg_out) { AVFilterFormats *formats = NULL; int fmt, ret; @@ -78,7 +80,7 @@ static int query_formats(AVFilterContext *ctx) return ret; } - return ff_set_common_formats(ctx, formats); + return ff_set_common_formats2(ctx, cfg_in, cfg_out, formats); } static const AVFilterPad swapuv_inputs[] = { @@ -95,6 +97,6 @@ const AVFilter ff_vf_swapuv = { .description = NULL_IF_CONFIG_SMALL("Swap U and V components."), FILTER_INPUTS(swapuv_inputs), FILTER_OUTPUTS(ff_video_default_filterpad), - FILTER_QUERY_FUNC(query_formats), + FILTER_QUERY_FUNC2(query_formats), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, };