提交 2d5545c3 编写于 作者: R Reimar Döffinger

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
上级 3cb4ee51
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册