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, };