https://bugzilla.novell.com/show_bug.cgi?id=223752#c1 Thorsten Kukuk <kukuk@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|libexif: Wrong Exposure Time with canon jpegs |libexif: Wrong Exposure Time with jpegs --- Comment #1 from Thorsten Kukuk <kukuk@novell.com> 2007-09-09 07:01:21 MST --- It's wrong with all of my cameras (not only Canon), and this is the fix for it (that's how all other projects calculate the value): --- libexif-0.6.16/libexif/exif-entry.c 2007-05-23 16:06:37.000000000 +0200 +++ libexif-0.6.16-tk/libexif/exif-entry.c 2007-09-09 14:50:23.000000000 +0200 @@ -774,7 +774,7 @@ d = (double) v_rat.numerator / (double) v_rat.denominator; if (d < 1) snprintf (val, maxlen, _("1/%d"), - (int) (1. / d)); + (int) (0.5 + 1. / d)); else snprintf (val, maxlen, _("%d"), (int) d); if (maxlen > strlen (val) + strlen (_(" sec."))) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.