From 5231b442c70673439e5e4e4dbc3d0f6cc650df62 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Mon, 28 Nov 2016 21:51:51 +0100 Subject: [PATCH] pixelshift: fix a crash in non-adaptive mode --- rtengine/pixelshift.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/pixelshift.cc b/rtengine/pixelshift.cc index abc5e2e0b..0abdd5524 100644 --- a/rtengine/pixelshift.cc +++ b/rtengine/pixelshift.cc @@ -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) {