diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 17:45:10 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:26 +0200 |
commit | 6b2b765ec9b318a1684927b666d7978d4abe0aae (patch) | |
tree | 6230b43e51d3af8c81d698b97035eb4ccf9ab599 /libavfilter/vf_sab.c | |
parent | 06896e46ad1ffb51f8cd2d6f6572337e5ede7c96 (diff) |
avfilter/vf_sab: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_sab.c')
-rw-r--r-- | libavfilter/vf_sab.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_sab.c b/libavfilter/vf_sab.c index 1e696fed5f..cf6c3c511e 100644 --- a/libavfilter/vf_sab.c +++ b/libavfilter/vf_sab.c @@ -55,8 +55,6 @@ typedef struct SabContext { unsigned int sws_flags; } SabContext; -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV410P, @@ -65,8 +63,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_YUV411P, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} #define RADIUS_MIN 0.1 #define RADIUS_MAX 4.0 @@ -326,7 +322,7 @@ const AVFilter ff_vf_sab = { .uninit = uninit, FILTER_INPUTS(sab_inputs), FILTER_OUTPUTS(sab_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &sab_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, }; |