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")) { } else if(!make.compare (0, 4, "SONY")) {
if (iso_speed == 65535 || iso_speed == 0) { if (iso_speed == 65535 || iso_speed == 0) {
rtexif::Tag* isoTag = exif->getTag ("RecommendedExposureIndex"); rtexif::Tag* isoTag = exif->getTag ("RecommendedExposureIndex");
if(isoTag)
if(isoTag) {
iso_speed = isoTag->toDouble(); 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")) { if (mnote && !make.compare (0, 5, "NIKON")) {
// ISO at max value supported, check manufacturer specific // ISO at max value supported, check manufacturer specific
@ -444,6 +450,7 @@ void ImageData::extractInfo ()
} }
} }
} }
}
ImageData::~ImageData () ImageData::~ImageData ()
{ {