pixelshift: fix a crash in non-adaptive mode

This commit is contained in:
heckflosse
2016-11-28 21:51:51 +01:00
parent 6496e34e4b
commit 5231b442c7

View File

@@ -236,7 +236,7 @@ void RawImageSource::pixelshift(int winx, int winy, int winw, int winh, bool det
// increase motion detection dependent on brightness
if(!adaptive) {
korr = log2Lut[((int)((*rawDataFrames)[1 - offset][i - offset + 1][j] * scaleGreen))>>1];
korr = log2Lut[((int)((*rawDataFrames[1 - offset])[i - offset + 1][j] * scaleGreen))>>1];
}
if (gridMax > thresh - korr) {