diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:43:29 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:27 +0200 |
commit | 7b78f9a0e6f51c36de75c8f478b0197c69f80ff7 (patch) | |
tree | 1acf3395c25e7c097c0a96c0d435ab914dcc0e31 | |
parent | 46617366e7e84853ce8ded7f45207ad843d9d4a1 (diff) |
avfilter/vf_kerndeint: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_kerndeint.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_kerndeint.c b/libavfilter/vf_kerndeint.c index 5d3e32a3ce..54e3cb02ff 100644 --- a/libavfilter/vf_kerndeint.c +++ b/libavfilter/vf_kerndeint.c @@ -66,8 +66,6 @@ static av_cold void uninit(AVFilterContext *ctx) av_freep(&kerndeint->tmp_data[0]); } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUYV422, @@ -78,9 +76,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static int config_props(AVFilterLink *inlink) { KerndeintContext *kerndeint = inlink->dst->priv; @@ -310,5 +305,5 @@ const AVFilter ff_vf_kerndeint = { .uninit = uninit, FILTER_INPUTS(kerndeint_inputs), FILTER_OUTPUTS(kerndeint_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), }; |