From 112b6cf6ffd592ac141c868d5e98b59b2a24e14f Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 27 Sep 2021 23:22:51 +0200 Subject: [PATCH] avfilter/vf_colorcontrast: Use formats list instead of query function Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_colorcontrast.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libavfilter/vf_colorcontrast.c b/libavfilter/vf_colorcontrast.c index b0f856a85e..a29b068eb1 100644 --- a/libavfilter/vf_colorcontrast.c +++ b/libavfilter/vf_colorcontrast.c @@ -310,8 +310,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) return ff_filter_frame(ctx->outputs[0], frame); } -static av_cold int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pixel_fmts[] = { AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24, AV_PIX_FMT_RGBA, AV_PIX_FMT_BGRA, @@ -327,9 +325,6 @@ static av_cold int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pixel_fmts); -} - static av_cold int config_input(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; @@ -394,7 +389,7 @@ const AVFilter ff_vf_colorcontrast = { .priv_class = &colorcontrast_class, FILTER_INPUTS(colorcontrast_inputs), FILTER_OUTPUTS(colorcontrast_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pixel_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, .process_command = ff_filter_process_command, };