We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c44048d commit a30f9c5Copy full SHA for a30f9c5
src/librawspeed/decoders/Cr3Decoder.cpp
@@ -563,6 +563,14 @@ void Cr3Decoder::decodeMetaDataInternal(const CameraMetaData* meta) {
563
iso = canonBox->CMT2()
564
->mRootIFD0->getEntryRecursive(ISOSPEEDRATINGS)
565
->getU32();
566
+ if(65535 == iso) {
567
+ // ISOSPEEDRATINGS is a SHORT EXIF value. For larger values, we have to look
568
+ // at RECOMMENDED_EXPOSURE_INDEX (maybe Canon specific).
569
+ if (canonBox->CMT2()->mRootIFD0->hasEntryRecursive(RECOMMENDEDEXPOSUREINDEX))
570
+ iso = canonBox->CMT2()
571
+ ->mRootIFD0->getEntryRecursive(RECOMMENDEDEXPOSUREINDEX)
572
+ ->getU32();
573
+ }
574
575
// Big raw image is always in track 4
576
assert(rootBox->moov()->tracks.size() >= 4);
0 commit comments