diff mbox series

[FFmpeg-devel,069/218] avfilter/vf_framepack: Use formats list instead of query function

Message ID PR3PR03MB6665380ED4725245805C56C18FAA9@PR3PR03MB6665.eurprd03.prod.outlook.com
State Accepted
Commit 27d2af093e5466aad24e3c806cca344835412175
Headers show
Series [FFmpeg-devel,001/218] avfilter/f_reverse: Don't use redundant query_formats function | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 30, 2021, 1:40 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/vf_framepack.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_framepack.c b/libavfilter/vf_framepack.c
index eb6fb70ae7..f30909ccff 100644
--- a/libavfilter/vf_framepack.c
+++ b/libavfilter/vf_framepack.c
@@ -79,12 +79,6 @@  static const enum AVPixelFormat formats_supported[] = {
     AV_PIX_FMT_NONE
 };
 
-static int query_formats(AVFilterContext *ctx)
-{
-    // this will ensure that formats are the same on all pads
-    return ff_set_common_formats_from_list(ctx, formats_supported);
-}
-
 static av_cold void framepack_uninit(AVFilterContext *ctx)
 {
     FramepackContext *s = ctx->priv;
@@ -471,7 +465,7 @@  const AVFilter ff_vf_framepack = {
     .priv_class    = &framepack_class,
     FILTER_INPUTS(framepack_inputs),
     FILTER_OUTPUTS(framepack_outputs),
-    FILTER_QUERY_FUNC(query_formats),
+    FILTER_PIXFMTS_ARRAY(formats_supported),
     .activate      = activate,
     .uninit        = framepack_uninit,
 };