diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 17:45:52 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:26 +0200 |
commit | 3f1f5187342be7252499a1f8869dcbf0c90f837b (patch) | |
tree | ee8b0daff9d8430646873be5df5af76aef89f5cd | |
parent | 6b2b765ec9b318a1684927b666d7978d4abe0aae (diff) |
avfilter/vf_rotate: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_rotate.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_rotate.c b/libavfilter/vf_rotate.c index 4f3f3959b0..65d2f10dd1 100644 --- a/libavfilter/vf_rotate.c +++ b/libavfilter/vf_rotate.c @@ -132,8 +132,6 @@ static av_cold void uninit(AVFilterContext *ctx) rot->angle_expr = NULL; } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA, @@ -157,9 +155,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static double get_rotated_w(void *opaque, double angle) { RotContext *rot = opaque; @@ -604,7 +599,7 @@ const AVFilter ff_vf_rotate = { .process_command = process_command, FILTER_INPUTS(rotate_inputs), FILTER_OUTPUTS(rotate_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &rotate_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, }; |