From 55e8c3598be79d4af93d135a895de70a04c88d6d Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 27 Sep 2021 21:40:31 +0200 Subject: [PATCH] avfilter/vf_libvmaf: Use formats list instead of query function Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_libvmaf.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libavfilter/vf_libvmaf.c b/libavfilter/vf_libvmaf.c index db008d5c05..993c8279ab 100644 --- a/libavfilter/vf_libvmaf.c +++ b/libavfilter/vf_libvmaf.c @@ -248,18 +248,12 @@ static av_cold int init(AVFilterContext *ctx) return 0; } -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_YUV444P10LE, AV_PIX_FMT_YUV422P10LE, AV_PIX_FMT_YUV420P10LE, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - - static int config_input_ref(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; @@ -367,5 +361,5 @@ const AVFilter ff_vf_libvmaf = { .priv_class = &libvmaf_class, FILTER_INPUTS(libvmaf_inputs), FILTER_OUTPUTS(libvmaf_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), };