changeset 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 ba26b176dcf8
children 8072ed8993f6
files imgconvert.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);