diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 17:31:22 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:25 +0200 |
commit | f3802ee0fafe6e867651034d68cd310fbf871fdc (patch) | |
tree | 2037132e02f6792950555aed3f9d243bf8ea68a5 | |
parent | b269c36cefcbad7619a1a50afd82df73196e4e96 (diff) |
avfilter/vf_tinterlace: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_tinterlace.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c index 91626192e0..d458e32d8b 100644 --- a/libavfilter/vf_tinterlace.c +++ b/libavfilter/vf_tinterlace.c @@ -87,8 +87,6 @@ static const AVRational standard_tbs[] = { {1001, 30000}, }; -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, @@ -103,9 +101,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static void lowpass_line_c(uint8_t *dstp, ptrdiff_t width, const uint8_t *srcp, ptrdiff_t mref, ptrdiff_t pref, int clip_max) { @@ -557,7 +552,7 @@ const AVFilter ff_vf_tinterlace = { .uninit = uninit, FILTER_INPUTS(tinterlace_inputs), FILTER_OUTPUTS(tinterlace_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &tinterlace_class, }; @@ -570,6 +565,6 @@ const AVFilter ff_vf_interlace = { .uninit = uninit, FILTER_INPUTS(tinterlace_inputs), FILTER_OUTPUTS(tinterlace_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &interlace_class, }; |