From cc29c2323a59386016d5619b043d6efc9fd9c7ca Mon Sep 17 00:00:00 2001
From: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
Date: Wed, 17 Oct 2012 17:38:09 -0400
Subject: [PATCH] * #16729: video: remove sizeof(unsigned char)

---
 daemon/src/video/video_receive_thread.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemon/src/video/video_receive_thread.cpp b/daemon/src/video/video_receive_thread.cpp
index 0b6be837b5..9717794dd7 100644
--- a/daemon/src/video/video_receive_thread.cpp
+++ b/daemon/src/video/video_receive_thread.cpp
@@ -65,7 +65,7 @@ int getBufferSize(int width, int height, int format)
 {
     enum PixelFormat fmt = (enum PixelFormat) format;
     // determine required buffer size and allocate buffer
-    return sizeof(unsigned char) * avpicture_get_size(fmt, width, height);
+    return avpicture_get_size(fmt, width, height);
 }
 
 string openTemp(string path, std::ofstream& os)
-- 
GitLab