Branch: Tag:

2013-04-23

2013-04-23 09:38:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Standards.EXIF: Support rationals with a zero denominator.

The denominator may be zero to indicate infinites.

Fixes [bug 6729 (#6729)].

1055:    {    int long1=long_value(file->read(4), order);    int long2=long_value(file->read(4), order); +  if (!long2) { +  if (long1 < 0) { +  tags[tag_name] = "-Inf"; +  } else { +  tags[tag_name] = "Inf"; +  } +  continue; +  }    switch(tag_format)    {    case "BIAS":