windowscodecs: Handle broken TIFF files without a RowsPerStrip tag.
This commit is contained in:
parent
66b11a00b5
commit
a08aa5391e
|
@ -462,8 +462,11 @@ static HRESULT tiff_get_decode_info(TIFF *tiff, tiff_decode_info *decode_info)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FIXME("missing RowsPerStrip value\n");
|
/* Some broken TIFF files have a single strip and lack the RowsPerStrip tag */
|
||||||
return E_FAIL;
|
decode_info->tile_height = decode_info->height;
|
||||||
|
decode_info->tile_width = decode_info->width;
|
||||||
|
decode_info->tile_stride = ((decode_info->bpp * decode_info->tile_width + 7)/8);
|
||||||
|
decode_info->tile_size = decode_info->tile_height * decode_info->tile_stride;
|
||||||
}
|
}
|
||||||
|
|
||||||
decode_info->resolution_unit = 0;
|
decode_info->resolution_unit = 0;
|
||||||
|
|
Loading…
Reference in New Issue