avfilter/vf_mpdecimate: 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 86edbd3707
commit c6419b0c9c
  1. 6
      libavfilter/vf_mpdecimate.c

@ -161,8 +161,6 @@ static av_cold void uninit(AVFilterContext *ctx)
av_frame_free(&decimate->ref);
}
static int query_formats(AVFilterContext *ctx)
{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P,
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P,
@ -178,8 +176,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
return ff_set_common_formats_from_list(ctx, pix_fmts);
}
static int config_input(AVFilterLink *inlink)
{
@ -246,5 +242,5 @@ const AVFilter ff_vf_mpdecimate = {
.priv_class = &mpdecimate_class,
FILTER_INPUTS(mpdecimate_inputs),
FILTER_OUTPUTS(mpdecimate_outputs),
FILTER_QUERY_FUNC(query_formats),
FILTER_PIXFMTS_ARRAY(pix_fmts),
};

Loading…
Cancel
Save