Commit e83e1c02 authored by reimar's avatar reimar

make "size" variable in avpicture_alloc signed, since avpicture_get_size

returns -1 on error which was not detected with previous code.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5304 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0f426c15
...@@ -1944,7 +1944,7 @@ static ConvertEntry convert_table[PIX_FMT_NB][PIX_FMT_NB] = { ...@@ -1944,7 +1944,7 @@ static ConvertEntry convert_table[PIX_FMT_NB][PIX_FMT_NB] = {
int avpicture_alloc(AVPicture *picture, int avpicture_alloc(AVPicture *picture,
int pix_fmt, int width, int height) int pix_fmt, int width, int height)
{ {
unsigned int size; int size;
void *ptr; void *ptr;
size = avpicture_get_size(pix_fmt, width, height); size = avpicture_get_size(pix_fmt, width, height);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment