diff --git a/include/libcamera/internal/v4l2_videodevice.h b/include/libcamera/internal/v4l2_videodevice.h
index 10367e4e17..f63d74879f 100644
--- a/include/libcamera/internal/v4l2_videodevice.h
+++ b/include/libcamera/internal/v4l2_videodevice.h
@@ -176,7 +176,7 @@ public:
 	Size size;
 	std::optional<ColorSpace> colorSpace;
 
-	std::array<Plane, 3> planes;
+	std::array<Plane, VIDEO_MAX_PLANES> planes;
 	unsigned int planesCount = 0;
 
 	std::string toString() const;
