Fix bug for non Nikon files with ISO > 65535

This commit is contained in:
heckflosse
2015-11-10 21:24:03 +01:00
parent 2af6d842b9
commit 41cd98d462
4 changed files with 62 additions and 36 deletions

View File

@@ -272,7 +272,15 @@ void ImageData::extractInfo ()
if(exif->getTag ("LensModel")) {
lens = exif->getTag ("LensModel")->valueToString ();
}
} else if (root->findTag("MakerNote")) {
} else if(!make.compare (0, 4, "SONY")) {
if (iso_speed == 65535 || iso_speed == 0) {
rtexif::Tag* isoTag = exif->getTag ("RecommendedExposureIndex");
if(isoTag)
iso_speed = isoTag->toDouble();
}
}
else if (root->findTag("MakerNote")) {
rtexif::TagDirectory* mnote = root->findTag("MakerNote")->getDirectory();
if (mnote && !make.compare (0, 5, "NIKON")) {