diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 23:36:47 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:29 +0200 |
commit | 94047d6aa505994e7d4a165b31692c46d7abab2e (patch) | |
tree | ce43cedaa64990723873629a8a0bfe78c63d7890 | |
parent | 32777acb362c6d4e6cbdbd4d732af164c6254c0b (diff) | |
download | ffmpeg-94047d6aa505994e7d4a165b31692c46d7abab2e.tar.gz |
avfilter/vf_bbox: Use formats list instead of query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_bbox.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_bbox.c b/libavfilter/vf_bbox.c index 181cbf0bfe..a5d52eff8d 100644 --- a/libavfilter/vf_bbox.c +++ b/libavfilter/vf_bbox.c @@ -46,8 +46,6 @@ static const AVOption bbox_options[] = { AVFILTER_DEFINE_CLASS(bbox); -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9, AV_PIX_FMT_GRAY10, AV_PIX_FMT_GRAY12, AV_PIX_FMT_GRAY14, @@ -72,9 +70,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE, }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - #define SET_META(key, value) \ av_dict_set_int(metadata, key, value, 0); @@ -155,7 +150,7 @@ const AVFilter ff_vf_bbox = { .priv_class = &bbox_class, FILTER_INPUTS(bbox_inputs), FILTER_OUTPUTS(bbox_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, .process_command = ff_filter_process_command, }; |