From d07ae68a0ebb3a537c4fe96d373e61f987914fed Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 27 Sep 2021 21:47:47 +0200 Subject: [PATCH] avfilter/vf_histeq: Use formats list instead of query function Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_histeq.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libavfilter/vf_histeq.c b/libavfilter/vf_histeq.c index e08315c50c..c04628a8d2 100644 --- a/libavfilter/vf_histeq.c +++ b/libavfilter/vf_histeq.c @@ -93,15 +93,11 @@ static av_cold int init(AVFilterContext *ctx) return 0; } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA, AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA, AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} static int config_input(AVFilterLink *inlink) { @@ -272,7 +268,7 @@ const AVFilter ff_vf_histeq = { .init = init, FILTER_INPUTS(histeq_inputs), FILTER_OUTPUTS(histeq_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &histeq_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, };