From e5b530f13751ca46bbfb883bca1102d6334cc12d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 15 Oct 2024 11:24:35 +0200 Subject: [PATCH] lavfi/vf_vmafmotion: convert to query_func2() --- libavfilter/vf_vmafmotion.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_vmafmotion.c b/libavfilter/vf_vmafmotion.c index a8adc67019..7c18473a3c 100644 --- a/libavfilter/vf_vmafmotion.c +++ b/libavfilter/vf_vmafmotion.c @@ -263,7 +263,9 @@ int ff_vmafmotion_init(VMAFMotionData *s, return 0; } -static int query_formats(AVFilterContext *ctx) +static int query_formats(const AVFilterContext *ctx, + AVFilterFormatsConfig **cfg_in, + AVFilterFormatsConfig **cfg_out) { AVFilterFormats *fmts_list = NULL; int format, ret; @@ -278,7 +280,7 @@ static int query_formats(AVFilterContext *ctx) return ret; } - return ff_set_common_formats(ctx, fmts_list); + return ff_set_common_formats2(ctx, cfg_in, cfg_out, fmts_list); } static int config_input_ref(AVFilterLink *inlink) @@ -359,5 +361,5 @@ const AVFilter ff_vf_vmafmotion = { .flags = AVFILTER_FLAG_METADATA_ONLY, FILTER_INPUTS(vmafmotion_inputs), FILTER_OUTPUTS(ff_video_default_filterpad), - FILTER_QUERY_FUNC(query_formats), + FILTER_QUERY_FUNC2(query_formats), };