diff --git a/libavfilter/vf_deflicker.c b/libavfilter/vf_deflicker.c index 11652c40ec..0db693e781 100644 --- a/libavfilter/vf_deflicker.c +++ b/libavfilter/vf_deflicker.c @@ -91,8 +91,6 @@ static const AVOption deflicker_options[] = { AVFILTER_DEFINE_CLASS(deflicker); -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pixel_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9, AV_PIX_FMT_GRAY10, AV_PIX_FMT_GRAY12, AV_PIX_FMT_GRAY14, AV_PIX_FMT_GRAY16, @@ -115,8 +113,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_YUVA420P9, AV_PIX_FMT_YUVA420P10, AV_PIX_FMT_YUVA420P16, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pixel_fmts); -} static int deflicker8(AVFilterContext *ctx, const uint8_t *src, ptrdiff_t src_linesize, @@ -469,5 +465,5 @@ const AVFilter ff_vf_deflicker = { .uninit = uninit, FILTER_INPUTS(inputs), FILTER_OUTPUTS(outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pixel_fmts), };