Make exif parser more robust
Currently, as soon as it finds a bad field, it gives up. Some android devices consistently create a bad field (that we dont care about) right before fields that we do care about (the orientation, in particular). Most exif parsers just move on to the next field in this case; this changes ours to do the same.
Esse commit está contido em:
@@ -6320,7 +6320,7 @@ static int exif_process_IFD_TAG(image_info_type *ImageInfo, char *dir_entry,
|
||||
raise_warning("Process tag(x%04X=%s): Illegal byte_count(%ld)",
|
||||
tag, exif_get_tagname(tag, tagname, -12, tag_table),
|
||||
byte_count);
|
||||
return 0;
|
||||
return 1; // ignore that field, but don't abort parsing
|
||||
}
|
||||
|
||||
if (byte_count > 4) {
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário