avfilter/vf_repeatfields: Use formats list instead of query function

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/369/head
Andreas Rheinhardt 3 years ago
parent 3f1f518734
commit 7c275aefe2
  1. 7
      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),
};

Loading…
Cancel
Save