Fix LensId Issue with Fuji DNG files

This commit is contained in:
heckflosse 2016-02-23 15:31:26 +01:00
parent 61121cada3
commit 686b25f33d

View File

@ -271,13 +271,19 @@ void ImageData::extractInfo ()
} else if(!make.compare (0, 4, "SONY")) {
if (iso_speed == 65535 || iso_speed == 0) {
rtexif::Tag* isoTag = exif->getTag ("RecommendedExposureIndex");
if(isoTag)
if(isoTag) {
iso_speed = isoTag->toDouble();
}
}
}
if (lens == "Unknown" && root->findTag("MakerNote")) {
rtexif::TagDirectory* mnote = root->findTag("MakerNote")->getDirectory();
if (lens == "Unknown") {
rtexif::Tag* mnoteTag = root->findTag("MakerNote");
if (mnoteTag) {
rtexif::TagDirectory* mnote = mnoteTag->getDirectory();
if (mnote && !make.compare (0, 5, "NIKON")) {
// ISO at max value supported, check manufacturer specific
@ -443,6 +449,7 @@ void ImageData::extractInfo ()
lens = exif->getTag ("LensInfo")->valueToString ();
}
}
}
}
ImageData::~ImageData ()