|
From: Jan P. <pa...@us...> - 2010-07-23 06:50:57
|
Update of /cvsroot/libexif/libexif/libexif In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8388 Modified Files: exif-entry.c Log Message: Canon EOS 5D Mark II writes Aperture values as invalid values 0x80000000/1 which makes pow() throw floating-point exceptions. Index: exif-entry.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/exif-entry.c,v retrieving revision 1.138 retrieving revision 1.139 diff -u -p -d -r1.138 -r1.139 --- exif-entry.c 6 Feb 2010 00:15:22 -0000 1.138 +++ exif-entry.c 23 Jul 2010 06:50:46 -0000 1.139 @@ -992,7 +992,7 @@ exif_entry_get_value (ExifEntry *e, char CF (e, EXIF_FORMAT_RATIONAL, val, maxlen); CC (e, 1, val, maxlen); v_rat = exif_get_rational (e->data, o); - if (!v_rat.denominator) { + if (!v_rat.denominator || (0x80000000 == v_rat.numerator)) { exif_entry_format_value(e, val, maxlen); break; } |