avfilter/vf_mcdeint: Store format in filter, remove query function

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/369/head
Andreas Rheinhardt 3 years ago
parent 9e48552ec6
commit 8d06c2e7eb
  1. 10
      libavfilter/vf_mcdeint.c

@ -162,14 +162,6 @@ static av_cold void uninit(AVFilterContext *ctx)
avcodec_free_context(&mcdeint->enc_ctx);
}
static int query_formats(AVFilterContext *ctx)
{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE
};
return ff_set_common_formats_from_list(ctx, pix_fmts);
}
static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
{
MCDeintContext *mcdeint = inlink->dst->priv;
@ -306,6 +298,6 @@ const AVFilter ff_vf_mcdeint = {
.uninit = uninit,
FILTER_INPUTS(mcdeint_inputs),
FILTER_OUTPUTS(mcdeint_outputs),
FILTER_QUERY_FUNC(query_formats),
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_YUV420P),
.priv_class = &mcdeint_class,
};

Loading…
Cancel
Save