From 2232a9ffbf908cac0cd4f1043a89e9ca4f8c2291 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 27 Sep 2021 21:17:15 +0200 Subject: [PATCH] avfilter/vf_owdenoise: Use formats list instead of query function Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_owdenoise.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libavfilter/vf_owdenoise.c b/libavfilter/vf_owdenoise.c index f0d2740ca1..a0ef4d696c 100644 --- a/libavfilter/vf_owdenoise.c +++ b/libavfilter/vf_owdenoise.c @@ -292,8 +292,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) return ff_filter_frame(outlink, out); } -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, @@ -309,8 +307,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_YUV420P16, AV_PIX_FMT_YUV422P16, AV_PIX_FMT_YUV444P16, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} static int config_input(AVFilterLink *inlink) { @@ -367,7 +363,7 @@ const AVFilter ff_vf_owdenoise = { .uninit = uninit, FILTER_INPUTS(owdenoise_inputs), FILTER_OUTPUTS(owdenoise_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &owdenoise_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, };