[FFmpeg-devel] [PATCH 098/218] avfilter/vf_uspp: Use formats list instead of query function
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Sep 30 16:40:39 EEST 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavfilter/vf_uspp.c | 7 +------
1 file changed, 1 insertion(+), 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,
};
--
2.30.2
More information about the ffmpeg-devel
mailing list