diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 22:59:35 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:28 +0200 |
commit | 339f7e804b16ba66454ac732114af0c9a8484b99 (patch) | |
tree | 6adda3890d9681c079650761c1eb41e086be992b /libavfilter/vf_displace.c | |
parent | 2af3b6d8f76f09fdf308d61a256db4a4715b980a (diff) | |
download | ffmpeg-339f7e804b16ba66454ac732114af0c9a8484b99.tar.gz |
avfilter/vf_displace: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_displace.c')
-rw-r--r-- | libavfilter/vf_displace.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_displace.c b/libavfilter/vf_displace.c index 8afef87d7a..19c1bf3c34 100644 --- a/libavfilter/vf_displace.c +++ b/libavfilter/vf_displace.c @@ -63,8 +63,6 @@ static const AVOption displace_options[] = { AVFILTER_DEFINE_CLASS(displace); -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P, @@ -78,9 +76,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static void displace_planar(DisplaceContext *s, const AVFrame *in, const AVFrame *xpic, const AVFrame *ypic, AVFrame *out) @@ -401,7 +396,7 @@ const AVFilter ff_vf_displace = { .activate = activate, FILTER_INPUTS(displace_inputs), FILTER_OUTPUTS(displace_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &displace_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL, }; |