diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:50:02 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:27 +0200 |
commit | 3c7ac4def5342f83fb922da076a6af1eb0db6fad (patch) | |
tree | 248145d2f27282ea53654191f802dbc3a19e0ac4 | |
parent | 485c4fb66f34cd0a3622e6b110812bd7e64dd3da (diff) | |
download | ffmpeg-3c7ac4def5342f83fb922da076a6af1eb0db6fad.tar.gz |
avfilter/vf_gradfun: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_gradfun.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c index 5eb346cd90..a40ab32b46 100644 --- a/libavfilter/vf_gradfun.c +++ b/libavfilter/vf_gradfun.c @@ -145,8 +145,6 @@ static av_cold void uninit(AVFilterContext *ctx) av_freep(&s->buf); } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_GRAY8, AV_PIX_FMT_YUV444P, @@ -155,8 +153,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_GBRP, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} static int config_input(AVFilterLink *inlink) { @@ -255,6 +251,6 @@ const AVFilter ff_vf_gradfun = { .uninit = uninit, FILTER_INPUTS(avfilter_vf_gradfun_inputs), FILTER_OUTPUTS(avfilter_vf_gradfun_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, }; |