From 2fc5d7b3490e41952e0e335841d7d7f72a3b76a9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 18 Aug 2021 19:44:29 +0200 Subject: video/ps3eye: move number of channels to a constant --- video-ps3eye/module.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video-ps3eye/module.hpp') diff --git a/video-ps3eye/module.hpp b/video-ps3eye/module.hpp index 595d446a..26cfad60 100644 --- a/video-ps3eye/module.hpp +++ b/video-ps3eye/module.hpp @@ -57,7 +57,7 @@ struct ps3eye_camera final : video::impl::camera settings s; frame fr; Timer t; - unsigned char data[640 * 480 * 3] = {}; + unsigned char data[640 * 480 * ps3eye::num_channels] = {}; int framerate = 30, sleep_ms = 1; bool open = false; unsigned timecode = 0; -- cgit v1.2.3