Support BigTIFF, thanks @bgilbert

This commit is contained in:
Lovell Fuller 2014-10-13 19:47:06 +01:00
parent 7d94e81b7b
commit 75bf439d92
1 changed files with 4 additions and 2 deletions

View File

@ -1905,8 +1905,10 @@ vips__istiff_buffer( void *buf, size_t len )
char *str = (char *) buf;
if( len >= 4 &&
((str[0] == 'M' && str[1] == 'M' && str[2] == '\0' && str[3] == '*') ||
(str[0] == 'I' && str[1] == 'I' && str[2] == '*' && str[3] == '\0')) )
((str[0] == 'M' && str[1] == 'M' &&
str[2] == '\0' && (str[3] == '*' || str[3] == '+')) ||
(str[0] == 'I' && str[1] == 'I' &&
(str[2] == '*' || str[2] == '+') && str[3] == '\0')) )
return( TRUE );
return( FALSE );