Consistent crash during DCB demosaicing, only affecting one camera, fixes #6034

This commit is contained in:
Ingo Weyrich 2021-01-04 10:37:48 +01:00
parent b8d5a3d9fb
commit cc7f1ecdab

View File

@ -972,11 +972,11 @@ inline void RawImageSource::dcb_initTileLimits(int &colMin, int &rowMin, int &co
}
if( y0 + TILESIZE + TILEBORDER >= H - border) {
rowMax = TILEBORDER + H - border - y0;
rowMax = std::min(TILEBORDER + H - border - y0, rowMax);
}
if( x0 + TILESIZE + TILEBORDER >= W - border) {
colMax = TILEBORDER + W - border - x0;
colMax = std::min(TILEBORDER + W - border - x0, colMax);
}
}