diff --git a/libavfilter/vf_shear.c b/libavfilter/vf_shear.c index 9c291bc152..1a007cc492 100644 --- a/libavfilter/vf_shear.c +++ b/libavfilter/vf_shear.c @@ -85,8 +85,6 @@ static av_cold int init(AVFilterContext *ctx) return 0; } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9, AV_PIX_FMT_GRAY10, AV_PIX_FMT_GRAY12, AV_PIX_FMT_GRAY14, @@ -114,9 +112,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - #define NN(type, name) \ static int filter_slice_nn##name(AVFilterContext *ctx, void *arg, int jobnr, \ int nb_jobs) \ @@ -319,7 +314,7 @@ const AVFilter ff_vf_shear = { .init = init, FILTER_INPUTS(inputs), FILTER_OUTPUTS(outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &shear_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, .process_command = process_command,