Merge pull request #3170 from Beep6581/sonylensfix
Fix Sony LensID issue, kudos to dschlegel
This commit is contained in:
commit
ad32009c53
@ -284,13 +284,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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else if (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
|
||||
@ -456,6 +462,7 @@ void ImageData::extractInfo ()
|
||||
lens = exif->getTag ("LensInfo")->valueToString ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ImageData::~ImageData ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user