From 5715c64435a3be155f42bf12432c8caadea0b5b5 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 27 Sep 2021 23:12:52 +0200 Subject: avfilter/vf_deblock: Use formats list instead of query function Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_deblock.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libavfilter/vf_deblock.c b/libavfilter/vf_deblock.c index 809e004ae9..275d916270 100644 --- a/libavfilter/vf_deblock.c +++ b/libavfilter/vf_deblock.c @@ -61,8 +61,6 @@ typedef struct DeblockContext { int ath, int bth, int gth, int dth, int max); } DeblockContext; -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pixel_fmts[] = { AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P, @@ -84,8 +82,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9, AV_PIX_FMT_GRAY10, AV_PIX_FMT_GRAY12, AV_PIX_FMT_GRAY14, AV_PIX_FMT_GRAY16, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pixel_fmts); -} #define WEAK_HFILTER(name, type, ldiv) \ static void deblockh##name##_weak(uint8_t *dstp, ptrdiff_t dst_linesize, int block, \ @@ -417,7 +413,7 @@ const AVFilter ff_vf_deblock = { .priv_class = &deblock_class, FILTER_INPUTS(inputs), FILTER_OUTPUTS(outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pixel_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, .process_command = process_command, }; -- cgit v1.2.3