From bb2b5254f9cf806dd1307cfa9e11ca40afda3b93 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 27 Sep 2021 16:54:55 +0200 Subject: [PATCH] avfilter/vf_xfade: Use formats list instead of query function Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_xfade.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libavfilter/vf_xfade.c b/libavfilter/vf_xfade.c index d5506a44a8..10f0edae52 100644 --- a/libavfilter/vf_xfade.c +++ b/libavfilter/vf_xfade.c @@ -117,8 +117,6 @@ typedef struct ThreadData { float progress; } ThreadData; -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUVJ444P, @@ -138,9 +136,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static av_cold void uninit(AVFilterContext *ctx) { XFadeContext *s = ctx->priv; @@ -2005,6 +2000,6 @@ const AVFilter ff_vf_xfade = { .uninit = uninit, FILTER_INPUTS(xfade_inputs), FILTER_OUTPUTS(xfade_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SLICE_THREADS, };