Pentax: ISO > 65535 was reported as 65535 in info dialog

This commit is contained in:
heckflosse 2016-11-08 14:06:11 +01:00
parent f017603478
commit b5094d9d9f

View File

@ -440,6 +440,16 @@ void ImageData::extractInfo ()
} }
} }
} else if (mnote && (!make.compare (0, 6, "PENTAX") || (!make.compare (0, 5, "RICOH") && !model.compare (0, 6, "PENTAX")))) { } else if (mnote && (!make.compare (0, 6, "PENTAX") || (!make.compare (0, 5, "RICOH") && !model.compare (0, 6, "PENTAX")))) {
// ISO at max value supported, check manufacturer specific
if (iso_speed == 65535 || iso_speed == 0) {
rtexif::Tag* baseIsoTag = mnote->getTag("ISO");
if (baseIsoTag) {
std::string isoData = baseIsoTag->valueToString();
if (isoData.size() > 1) {
iso_speed = atoi(isoData.c_str());
}
}
}
if (mnote->getTag ("LensType")) { if (mnote->getTag ("LensType")) {
lens = mnote->getTag ("LensType")->valueToString (); lens = mnote->getTag ("LensType")->valueToString ();
} }