# HG changeset patch # User reimar # Date 1145476316 0 # Node ID 3b785e80ce3ebb20a133533056d376805b2e9435 # Parent ba26b176dcf89cf6c4de6eaaddb4afc0935225bb make "size" variable in avpicture_alloc signed, since avpicture_get_size returns -1 on error which was not detected with previous code. diff -r ba26b176dcf8 -r 3b785e80ce3e imgconvert.c --- 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);