Browse Source

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
tags/v0.5
Reimar Döffinger 20 years ago
parent
commit
2d5545c302
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/imgconvert.c

+ 1
- 1
libavcodec/imgconvert.c View File

@@ -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);


Loading…
Cancel
Save