diff --git a/libavfilter/vf_repeatfields.c b/libavfilter/vf_repeatfields.c index f2aca5a059..340d908dc6 100644 --- a/libavfilter/vf_repeatfields.c +++ b/libavfilter/vf_repeatfields.c @@ -38,8 +38,6 @@ static av_cold void uninit(AVFilterContext *ctx) av_frame_free(&s->frame); } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pixel_fmts_eq[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_YUV410P, @@ -50,9 +48,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pixel_fmts_eq); -} - static int config_input(AVFilterLink *inlink) { RepeatFieldsContext *s = inlink->dst->priv; @@ -183,5 +178,5 @@ const AVFilter ff_vf_repeatfields = { .uninit = uninit, FILTER_INPUTS(repeatfields_inputs), FILTER_OUTPUTS(repeatfields_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pixel_fmts_eq), };