From 5c91a6755b6412c918e20ff4735ca30f38a12569 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 10 Feb 2003 09:35:32 +0000 Subject: * static,const,compiler warning cleanup Originally committed as revision 1567 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/imgconvert.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavcodec/imgconvert.c') diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 4c9722f..6f9e511 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -739,7 +739,7 @@ static inline unsigned int bitcopy_n(unsigned int a, int n) #define RGB_IN(r, g, b, s)\ {\ - unsigned int v = ((UINT16 *)(s))[0];\ + unsigned int v = ((const UINT16 *)(s))[0];\ r = bitcopy_n(v >> (10 - 3), 3);\ g = bitcopy_n(v >> (5 - 3), 3);\ b = bitcopy_n(v << 3, 3);\ @@ -762,7 +762,7 @@ RGB_FUNCTIONS(rgb555) #define RGB_IN(r, g, b, s)\ {\ - unsigned int v = ((UINT16 *)(s))[0];\ + unsigned int v = ((const UINT16 *)(s))[0];\ r = bitcopy_n(v >> (11 - 3), 3);\ g = bitcopy_n(v >> (5 - 2), 2);\ b = bitcopy_n(v << 3, 3);\ @@ -833,7 +833,7 @@ RGB_FUNCTIONS(rgb24) #define RGB_IN(r, g, b, s)\ {\ - unsigned int v = ((UINT32 *)(s))[0];\ + unsigned int v = ((const UINT32 *)(s))[0];\ r = (v >> 16) & 0xff;\ g = (v >> 8) & 0xff;\ b = v & 0xff;\ @@ -1229,7 +1229,7 @@ static ConvertEntry convert_table[PIX_FMT_NB][PIX_FMT_NB] = { static int avpicture_alloc(AVPicture *picture, int pix_fmt, int width, int height) { - int size; + unsigned int size; void *ptr; size = avpicture_get_size(pix_fmt, width, height); -- cgit v1.1