From 9ebdaa6c7d41a35192661b99c63b97076638616a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 4 Oct 2024 10:09:29 +0200 Subject: [PATCH] lavfi/vf_detelecine: switch to query_func2() --- libavfilter/vf_detelecine.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_detelecine.c b/libavfilter/vf_detelecine.c index 8eae7107c2..cc69194a19 100644 --- a/libavfilter/vf_detelecine.c +++ b/libavfilter/vf_detelecine.c @@ -122,13 +122,16 @@ static av_cold int init(AVFilterContext *ctx) return 0; } -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_BITSTREAM | 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) @@ -377,5 +380,5 @@ const AVFilter ff_vf_detelecine = { .uninit = uninit, FILTER_INPUTS(detelecine_inputs), FILTER_OUTPUTS(detelecine_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_QUERY_FUNC2(query_formats), };