AVI: Fix buffer overflow

That was causing crashes when loading uncompressed avi files created with blender 2.79.
This commit is contained in:
Clément Foucault 2019-04-25 20:40:57 +02:00
parent 56b0cd1db6
commit e85eb51a28
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ void *avi_converter_to_rgb32(AviMovie *movie, int stream, unsigned char *buffer,
*size = (size_t)movie->header->Height * (size_t)movie->header->Width * 4;
buf = imb_alloc_pixels(
movie->header->Height, movie->header->Width, 3, sizeof(unsigned char), "torgb32buf");
movie->header->Height, movie->header->Width, 4, sizeof(unsigned char), "torgb32buf");
if (!buf) {
return NULL;
}