summaryrefslogtreecommitdiff
path: root/libavfilter/vf_mcdeint.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 15:56:32 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:24 +0200
commit8d06c2e7eb595050c8a1bb0b013110705ee50475 (patch)
treec44fead6b6ab2ede967e681144f0737eefc5e633 /libavfilter/vf_mcdeint.c
parent9e48552ec604c09a03326155710711da3ca351ef (diff)
avfilter/vf_mcdeint: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_mcdeint.c')
-rw-r--r--libavfilter/vf_mcdeint.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libavfilter/vf_mcdeint.c b/libavfilter/vf_mcdeint.c
index fcbc0257b9..e747521c0a 100644
--- a/libavfilter/vf_mcdeint.c
+++ b/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,
};