From 653d783b3164c3badfa460b3de0fca0ddd4281d9 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 27 Sep 2021 23:19:21 +0200 Subject: [PATCH] avfilter/vf_colortemperature: Use formats list instead of query function Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_colortemperature.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libavfilter/vf_colortemperature.c b/libavfilter/vf_colortemperature.c index 919ad81c69..c6c4b6f3f0 100644 --- a/libavfilter/vf_colortemperature.c +++ b/libavfilter/vf_colortemperature.c @@ -276,8 +276,6 @@ static int filter_frame(AVFilterLink *inlink, 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, @@ -293,9 +291,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; @@ -356,7 +351,7 @@ const AVFilter ff_vf_colortemperature = { .priv_class = &colortemperature_class, FILTER_INPUTS(inputs), FILTER_OUTPUTS(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, };