libv4lconvert: add missing const for input pointer
authorGregor Jasny <gjasny@googlemail.com>
Wed, 1 Feb 2012 17:41:36 +0000 (18:41 +0100)
committerGregor Jasny <gjasny@googlemail.com>
Sun, 5 Feb 2012 16:28:01 +0000 (17:28 +0100)
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
lib/libv4lconvert/rgbyuv.c

index 324d90f..2b5c622 100644 (file)
@@ -605,7 +605,7 @@ void v4lconvert_grey_to_yuv420(const unsigned char *src, unsigned char *dest,
 }
 
 /* Unpack buffer of (vw bit) data into padded 16bit buffer. */
-static inline void convert_packed_to_16bit(uint8_t *raw, uint16_t *unpacked,
+static inline void convert_packed_to_16bit(const uint8_t *raw, uint16_t *unpacked,
                                           int vw, int unpacked_len)
 {
        int mask = (1 << vw) - 1;