forked from bartvdbraak/blender
Fix T39410: Crashes when Saving HiRes .tif
This commit is contained in:
parent
29888dcea0
commit
f88776bb5c
@ -859,7 +859,7 @@ int imb_savetiff(ImBuf *ibuf, const char *name, int flags)
|
||||
TIFFSetField(image, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
|
||||
if (TIFFWriteEncodedStrip(image, 0,
|
||||
(bitspersample == 16) ? (unsigned char *)pixels16 : pixels,
|
||||
ibuf->x * ibuf->y * samplesperpixel * bitspersample / 8) == -1)
|
||||
(size_t)ibuf->x * ibuf->y * samplesperpixel * bitspersample / 8) == -1)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"imb_savetiff: Could not write encoded TIFF.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user