diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:47:47 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:27 +0200 |
commit | d07ae68a0ebb3a537c4fe96d373e61f987914fed (patch) | |
tree | dce16743bdd1ad5c374df1dfbc4a41a7163649ec | |
parent | 315e9e121c3c3b68d863f1cd904c5e25e7ed1088 (diff) | |
download | ffmpeg-d07ae68a0ebb3a537c4fe96d373e61f987914fed.tar.gz |
avfilter/vf_histeq: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_histeq.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_histeq.c b/libavfilter/vf_histeq.c index e08315c50c..c04628a8d2 100644 --- a/libavfilter/vf_histeq.c +++ b/libavfilter/vf_histeq.c @@ -93,15 +93,11 @@ static av_cold int init(AVFilterContext *ctx) return 0; } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA, AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA, AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} static int config_input(AVFilterLink *inlink) { @@ -272,7 +268,7 @@ const AVFilter ff_vf_histeq = { .init = init, FILTER_INPUTS(histeq_inputs), FILTER_OUTPUTS(histeq_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &histeq_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, }; |