Ugly hack to hide the GPSVersionID bug

see https://github.com/libvips/libvips/issues/394
This commit is contained in:
John Cupitt 2020-07-18 11:59:42 +01:00
parent 43385c928d
commit 63a549a3b2
1 changed files with 5 additions and 1 deletions

View File

@ -1204,7 +1204,11 @@ vips_exif_image_field( VipsImage *image,
return( NULL );
}
if( !(tag = exif_tag_from_name( p + 1 )) ) {
/* GPSVersionID is tag 0 (the error return) so we have to
* test the name too.
*/
if( !(tag = exif_tag_from_name( p + 1 )) &&
strcmp( p + 1, "GPSVersionID" ) != 0 ) {
g_warning( _( "bad exif meta \"%s\"" ), field );
return( NULL );
}