diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-04-19 19:51:56 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-04-19 19:51:56 +0000 |
commit | 2d5545c30206f3c84bb2cdd7df70bb290ffb4158 (patch) | |
tree | 1ebfa3f4d0a5741dc8d7868bd691f68d115fa719 /libavcodec/imgconvert.c | |
parent | 3cb4ee51245c806fd840f7ec32c7a3c50a808839 (diff) | |
download | ffmpeg-streaming-2d5545c30206f3c84bb2cdd7df70bb290ffb4158.zip ffmpeg-streaming-2d5545c30206f3c84bb2cdd7df70bb290ffb4158.tar.gz |
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
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r-- | libavcodec/imgconvert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index d066d40..cf0c297 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); |