diff imgconvert.c @ 3266:3b785e80ce3e libavcodec

make "size" variable in avpicture_alloc signed, since avpicture_get_size returns -1 on error which was not detected with previous code.
author reimar
date Wed, 19 Apr 2006 19:51:56 +0000
parents 63f61b09dcee
children 54814e15aa3d
line wrap: on
line diff
--- a/imgconvert.c	Tue Apr 18 03:48:30 2006 +0000
+++ b/imgconvert.c	Wed Apr 19 19:51:56 2006 +0000
@@ -1944,7 +1944,7 @@
 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);