diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:17:15 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:26 +0200 |
commit | 2232a9ffbf908cac0cd4f1043a89e9ca4f8c2291 (patch) | |
tree | 6250215efdc66ea7603c98db2e4603c57a8451e0 | |
parent | 39e06e403ab4e0c59bbc5911e4b1ef8e379c9562 (diff) | |
download | ffmpeg-2232a9ffbf908cac0cd4f1043a89e9ca4f8c2291.tar.gz |
avfilter/vf_owdenoise: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_owdenoise.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_owdenoise.c b/libavfilter/vf_owdenoise.c index f0d2740ca1..a0ef4d696c 100644 --- a/libavfilter/vf_owdenoise.c +++ b/libavfilter/vf_owdenoise.c @@ -292,8 +292,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) return ff_filter_frame(outlink, out); } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P, @@ -309,8 +307,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_YUV420P16, AV_PIX_FMT_YUV422P16, AV_PIX_FMT_YUV444P16, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} static int config_input(AVFilterLink *inlink) { @@ -367,7 +363,7 @@ const AVFilter ff_vf_owdenoise = { .uninit = uninit, FILTER_INPUTS(owdenoise_inputs), FILTER_OUTPUTS(owdenoise_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &owdenoise_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, }; |