From 02057f4ff10786675320d25405e9225c9e70c292 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 27 Sep 2021 21:46:17 +0200 Subject: [PATCH] avfilter/vf_hue: Use formats list instead of query function Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_hue.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c index a9f96a02f7..b56674873c 100644 --- a/libavfilter/vf_hue.c +++ b/libavfilter/vf_hue.c @@ -248,8 +248,6 @@ static av_cold void uninit(AVFilterContext *ctx) av_expr_free(hue->saturation_pexpr); } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P, @@ -263,8 +261,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_YUVA420P10, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} static int config_props(AVFilterLink *inlink) { @@ -520,7 +516,7 @@ const AVFilter ff_vf_hue = { .process_command = process_command, FILTER_INPUTS(hue_inputs), FILTER_OUTPUTS(hue_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &hue_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, };