windowscodecs: Ignore an unspecified extra sample in RGB TIFF images.
This commit is contained in:
parent
a16df86db3
commit
377d890820
|
@ -333,6 +333,9 @@ static HRESULT tiff_get_decode_info(TIFF *tiff, tiff_decode_info *decode_info)
|
|||
else
|
||||
switch(extra_samples[0])
|
||||
{
|
||||
case 0: /* Unspecified data */
|
||||
decode_info->format = &GUID_WICPixelFormat32bppBGR;
|
||||
break;
|
||||
case 1: /* Associated (pre-multiplied) alpha data */
|
||||
decode_info->format = &GUID_WICPixelFormat32bppPBGRA;
|
||||
break;
|
||||
|
@ -350,6 +353,10 @@ static HRESULT tiff_get_decode_info(TIFF *tiff, tiff_decode_info *decode_info)
|
|||
else
|
||||
switch(extra_samples[0])
|
||||
{
|
||||
case 0: /* Unspecified data */
|
||||
/* decode_info->format = &GUID_WICPixelFormat64bppRGB; */
|
||||
FIXME("64-bit RGB is unsupported\n");
|
||||
return E_FAIL;
|
||||
case 1: /* Associated (pre-multiplied) alpha data */
|
||||
decode_info->format = &GUID_WICPixelFormat64bppPRGBA;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue