make "size" variable in avpicture_alloc signed, since avpicture_get_size
[ffmpeg.git] / libavcodec / imgconvert.c
index d066d40..cf0c297 100644 (file)
@@ -1944,7 +1944,7 @@ static ConvertEntry convert_table[PIX_FMT_NB][PIX_FMT_NB] = {
 int avpicture_alloc(AVPicture *picture,
                            int pix_fmt, int width, int height)
 {
-    unsigned int size;
+    int size;
     void *ptr;
 
     size = avpicture_get_size(pix_fmt, width, height);