Fix Exif parsing for old Canons (ported by @Beep6581, fixes #4843)
This commit is contained in:
@@ -1293,14 +1293,10 @@ FramesData::FramesData (const Glib::ustring& fname, std::unique_ptr<RawMetaDataL
|
||||
FILE* f = g_fopen (fname.c_str (), "rb");
|
||||
|
||||
if (f) {
|
||||
const bool has_rml_exif_base = rml->exifBase >= 0;
|
||||
rtexif::ExifManager exifManager (f, std::move(rml), firstFrameOnly);
|
||||
|
||||
if (has_rml_exif_base) {
|
||||
if (exifManager.f && exifManager.rml) {
|
||||
if (exifManager.rml->exifBase >= 0) {
|
||||
exifManager.parseRaw ();
|
||||
|
||||
} else if (exifManager.rml->ciffBase >= 0) {
|
||||
exifManager.parseCIFF ();
|
||||
}
|
||||
@@ -1321,7 +1317,7 @@ FramesData::FramesData (const Glib::ustring& fname, std::unique_ptr<RawMetaDataL
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fclose (f);
|
||||
}
|
||||
} else if (hasJpegExtension(fname)) {
|
||||
|
@@ -2116,6 +2116,7 @@ void ExifManager::parseCIFF ()
|
||||
}
|
||||
parseCIFF (rml->ciffLength, root);
|
||||
root->sort ();
|
||||
parse(true);
|
||||
}
|
||||
|
||||
Tag* ExifManager::saveCIFFMNTag (TagDirectory* root, int len, const char* name)
|
||||
|
Reference in New Issue
Block a user