From 5237a29d05aac51742588406fbbe791f61cd4630 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 27 Sep 2021 16:33:07 +0200 Subject: [PATCH] avfilter/vf_thumbnail_cuda: Store format in filter, remove query func Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_thumbnail_cuda.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/libavfilter/vf_thumbnail_cuda.c b/libavfilter/vf_thumbnail_cuda.c index a7a246c959..491542c60a 100644 --- a/libavfilter/vf_thumbnail_cuda.c +++ b/libavfilter/vf_thumbnail_cuda.c @@ -412,15 +412,6 @@ static int config_props(AVFilterLink *inlink) return 0; } -static int query_formats(AVFilterContext *ctx) -{ - static const enum AVPixelFormat pix_fmts[] = { - AV_PIX_FMT_CUDA, - AV_PIX_FMT_NONE - }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static const AVFilterPad thumbnail_cuda_inputs[] = { { .name = "default", @@ -446,7 +437,7 @@ const AVFilter ff_vf_thumbnail_cuda = { .uninit = uninit, FILTER_INPUTS(thumbnail_cuda_inputs), FILTER_OUTPUTS(thumbnail_cuda_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_SINGLE_PIXFMT(AV_PIX_FMT_CUDA), .priv_class = &thumbnail_cuda_class, .flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE, };