diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 17:28:36 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:25 +0200 |
commit | 2635e851decbc58076301e6fb7897a0a7e58ee70 (patch) | |
tree | ca3e5e0f545de4ef6157e3e6684faa3155cc2b2b | |
parent | a95c093084767eb17c23db7be08311d2fcc347c1 (diff) |
avfilter/vf_uspp: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_uspp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_uspp.c b/libavfilter/vf_uspp.c index d9022b1053..c307ead7d7 100644 --- a/libavfilter/vf_uspp.c +++ b/libavfilter/vf_uspp.c @@ -293,8 +293,6 @@ static void filter(USPPContext *p, uint8_t *dst[3], uint8_t *src[3], } } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV420P, @@ -305,9 +303,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static int config_input(AVFilterLink *inlink) { @@ -496,7 +491,7 @@ const AVFilter ff_vf_uspp = { .uninit = uninit, FILTER_INPUTS(uspp_inputs), FILTER_OUTPUTS(uspp_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &uspp_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL, }; |