diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:55:09 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:27 +0200 |
commit | 6a8858ef78c3f73633793238b93aa3b645e18adb (patch) | |
tree | 4b559bacb0f00483b653524d4ae52e3e5f0c439e /libavfilter/vf_floodfill.c | |
parent | cf8b7e8b71dad8b00e2ecc5919895b8b0b7c5cea (diff) | |
download | ffmpeg-6a8858ef78c3f73633793238b93aa3b645e18adb.tar.gz |
avfilter/vf_floodfill: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_floodfill.c')
-rw-r--r-- | libavfilter/vf_floodfill.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_floodfill.c b/libavfilter/vf_floodfill.c index 2e98fb5b71..1f52abf0fd 100644 --- a/libavfilter/vf_floodfill.c +++ b/libavfilter/vf_floodfill.c @@ -355,8 +355,6 @@ end: 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_GRAY8, AV_PIX_FMT_GRAY9, AV_PIX_FMT_GRAY10, AV_PIX_FMT_GRAY14, AV_PIX_FMT_GRAY16, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUVA444P, @@ -368,9 +366,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 void uninit(AVFilterContext *ctx) { FloodfillContext *s = ctx->priv; @@ -421,6 +416,6 @@ const AVFilter ff_vf_floodfill = { .uninit = uninit, FILTER_INPUTS(floodfill_inputs), FILTER_OUTPUTS(floodfill_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pixel_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, }; |