windowscodecs: Ignore an unspecified extra sample in RGB TIFF images.

This commit is contained in:
Vincent Povirk 2011-01-10 15:46:44 -06:00 committed by Alexandre Julliard
parent a16df86db3
commit 377d890820
1 changed files with 7 additions and 0 deletions

View File

@ -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;