Fix crash and freeze opening files with GMCY cfa (e.g. Canon Powershot G1)

This commit is contained in:
heckflosse
2016-04-11 17:06:54 +02:00
parent 3ac59ad467
commit 44b9fdaae8
2 changed files with 8 additions and 8 deletions

View File

@@ -325,7 +325,7 @@ Thumbnail* Thumbnail::loadFromRaw (const Glib::ustring& fname, RawMetaDataLocati
// locate first green location in the first row
if(ri->getSensorType() == ST_BAYER)
while (!FISGREEN(filter, 1, firstgreen)) {
while (!FISGREEN(filter, 1, firstgreen) && firstgreen < 3) {
firstgreen++;
}