From f4ea416a131cd715d7df04def5b678a217484c4d Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 27 Sep 2021 17:39:26 +0200 Subject: [PATCH] avfilter/vf_signature: Use formats list instead of query function Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_signature.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libavfilter/vf_signature.c b/libavfilter/vf_signature.c index 03b53f9a4c..2b55f7fe67 100644 --- a/libavfilter/vf_signature.c +++ b/libavfilter/vf_signature.c @@ -69,8 +69,6 @@ static const AVOption signature_options[] = { AVFILTER_DEFINE_CLASS(signature); -static int query_formats(AVFilterContext *ctx) -{ /* all formats with a separate gray value */ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, @@ -84,9 +82,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static int config_input(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; @@ -762,6 +757,6 @@ const AVFilter ff_vf_signature = { .uninit = uninit, FILTER_OUTPUTS(signature_outputs), .inputs = NULL, - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_DYNAMIC_INPUTS, };