From 2d5545c30206f3c84bb2cdd7df70bb290ffb4158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Wed, 19 Apr 2006 19:51:56 +0000 Subject: [PATCH] make "size" variable in avpicture_alloc signed, since avpicture_get_size returns -1 on error which was not detected with previous code. Originally committed as revision 5304 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/imgconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index d066d40d35..cf0c297ef2 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -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);