AVI: Fix buffer overflow
That was causing crashes when loading uncompressed avi files created with blender 2.79.
This commit is contained in:
parent
56b0cd1db6
commit
e85eb51a28
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue