RT crashes on loading Hasselblad H6D-100cMS pixelshift files, fixes #5433

This commit is contained in:
Ingo Weyrich
2019-09-01 20:22:42 +02:00
parent a5cba6261a
commit 5ea18efeb8
4 changed files with 49 additions and 6 deletions

View File

@@ -547,6 +547,17 @@ Thumbnail* Thumbnail::loadFromRaw (const Glib::ustring& fname, RawMetaDataLocati
return nullptr;
}
if (ri->getFrameCount() == 7) {
// special case for Hasselblad H6D-100cMS pixelshift files
// first frame is not bayer, load second frame
int r = ri->loadRaw (1, 1, 0);
if ( r ) {
delete ri;
sensorType = ST_NONE;
return nullptr;
}
}
sensorType = ri->getSensorType();
int width = ri->get_width();