Support BigTIFF, thanks @bgilbert
This commit is contained in:
parent
7d94e81b7b
commit
75bf439d92
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user