diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:29:09 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:26 +0200 |
commit | 1cf74425160444c051a1270f44ba1b63b26878bb (patch) | |
tree | cde79333d632c32f327db1dd205f57c975a98a32 /libavfilter/vf_monochrome.c | |
parent | c6419b0c9cac9c5b4e3abe2b3ce8aa162d6e54d8 (diff) | |
download | ffmpeg-1cf74425160444c051a1270f44ba1b63b26878bb.tar.gz |
avfilter/vf_monochrome: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_monochrome.c')
-rw-r--r-- | libavfilter/vf_monochrome.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_monochrome.c b/libavfilter/vf_monochrome.c index b2db6eb864..12dc701d92 100644 --- a/libavfilter/vf_monochrome.c +++ b/libavfilter/vf_monochrome.c @@ -222,8 +222,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) return ff_filter_frame(ctx->outputs[0], frame); } -static av_cold int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pixel_fmts[] = { AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, @@ -245,9 +243,6 @@ static av_cold int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pixel_fmts); -} - static av_cold int config_input(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; @@ -300,7 +295,7 @@ const AVFilter ff_vf_monochrome = { .priv_class = &monochrome_class, FILTER_INPUTS(monochrome_inputs), FILTER_OUTPUTS(monochrome_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pixel_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, .process_command = ff_filter_process_command, }; |