diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 22:03:14 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:27 +0200 |
commit | e5a6ae8d837177dc1aa6daf60aa653b33eccb2fe (patch) | |
tree | d1e8cbe20afa31c6893bc0c2771e4d31bbf4bc3b | |
parent | 756b1d9fcbecc7ed90946cd8dd7689ebc8385caa (diff) | |
download | ffmpeg-e5a6ae8d837177dc1aa6daf60aa653b33eccb2fe.tar.gz |
avfilter/vf_eq: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_eq.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_eq.c b/libavfilter/vf_eq.c index 74fc4d4968..0fc47091c9 100644 --- a/libavfilter/vf_eq.c +++ b/libavfilter/vf_eq.c @@ -232,8 +232,6 @@ static int config_props(AVFilterLink *inlink) return 0; } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pixel_fmts_eq[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_YUV410P, @@ -243,8 +241,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pixel_fmts_eq); -} static int filter_frame(AVFilterLink *inlink, AVFrame *in) { @@ -379,7 +375,7 @@ const AVFilter ff_vf_eq = { .priv_class = &eq_class, FILTER_INPUTS(eq_inputs), FILTER_OUTPUTS(eq_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pixel_fmts_eq), .process_command = process_command, .init = initialize, .uninit = uninit, |