aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_yadif.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 16:52:31 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:25 +0200
commit98e7992acf72065e49a875f20209e89499a2c1c3 (patch)
treee1465a871b248929e447221343690c95e347ce74 /libavfilter/vf_yadif.c
parent57f851a21d7d61980303a2f7c68df6f8b5fe1dfc (diff)
downloadffmpeg-98e7992acf72065e49a875f20209e89499a2c1c3.tar.gz
avfilter/vf_yadif: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_yadif.c')
-rw-r--r--libavfilter/vf_yadif.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index 26d457360a..9c3706e5d6 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -265,8 +265,6 @@ static av_cold void uninit(AVFilterContext *ctx)
av_frame_free(&yadif->next);
}
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV444P,
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV440P,
@@ -285,9 +283,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static int config_output(AVFilterLink *outlink)
{
AVFilterContext *ctx = outlink->src;
@@ -356,6 +351,6 @@ const AVFilter ff_vf_yadif = {
.uninit = uninit,
FILTER_INPUTS(avfilter_vf_yadif_inputs),
FILTER_OUTPUTS(avfilter_vf_yadif_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
};