[FFmpeg-devel] [PATCH 1/2] avutil/pixfmt: Add AV_PIX_MAX_PLANES

Michael Niedermayer michael at niedermayer.cc
Thu Feb 8 14:57:57 EET 2024


It seems we do not have a named identifier for the maximum planes of pixel formats

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavutil/pixfmt.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
index 9c87571f49e..67422f02d02 100644
--- a/libavutil/pixfmt.h
+++ b/libavutil/pixfmt.h
@@ -32,6 +32,8 @@
 #define AVPALETTE_SIZE 1024
 #define AVPALETTE_COUNT 256
 
+#define AV_PIX_MAX_PLANES 4
+
 /**
  * Pixel format.
  *
-- 
2.17.1



More information about the ffmpeg-devel mailing list