diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 15:27:41 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:24 +0200 |
commit | e6d233e362823c970571f4f5e0bb185c1796c16a (patch) | |
tree | c45e474388d8056c950deb9c9f2855896146ad7e | |
parent | 29ffdd7848854817eb0374cbe5639a393417d759 (diff) |
avfilter/vf_cover_rect: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_cover_rect.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/libavfilter/vf_cover_rect.c b/libavfilter/vf_cover_rect.c index 90e19ea8a6..01c9f2abbb 100644 --- a/libavfilter/vf_cover_rect.c +++ b/libavfilter/vf_cover_rect.c @@ -54,17 +54,6 @@ static const AVOption cover_rect_options[] = { AVFILTER_DEFINE_CLASS(cover_rect); -static int query_formats(AVFilterContext *ctx) -{ - static const enum AVPixelFormat pix_fmts[] = { - AV_PIX_FMT_YUV420P, - AV_PIX_FMT_YUVJ420P, - AV_PIX_FMT_NONE - }; - - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static int config_input(AVFilterLink *inlink) { return 0; @@ -253,6 +242,6 @@ const AVFilter ff_vf_cover_rect = { .uninit = uninit, FILTER_INPUTS(cover_rect_inputs), FILTER_OUTPUTS(cover_rect_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS(AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUVJ420P), .priv_class = &cover_rect_class, }; |