From 6b653ad5a1dd4bc1fd17e1698a6ad15bef937852 Mon Sep 17 00:00:00 2001 From: ffsup2 Date: Mon, 25 Oct 2010 23:54:44 +0200 Subject: [PATCH] bugfix for boundary conditions --- rtengine/rawimagesource.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rtengine/rawimagesource.cc b/rtengine/rawimagesource.cc index fc09b7fc7..f5a7eec36 100644 --- a/rtengine/rawimagesource.cc +++ b/rtengine/rawimagesource.cc @@ -334,8 +334,8 @@ int RawImageSource::cfaCleanFromMap( BYTE* bitmapBads ) float eps=1.0; int bmpW= (W/8+ (W%8?1:0)); int counter=0; - for( int row = 0; row < H; row++ ){ - for(int col = 0; col =H || col+dx<0 || col+dx>=W ) continue; if (bitmapBads[ (row+dy) *bmpW + (col+dx)/8] & (1<<(col+dx)%8)) continue; sum += rawData[row+dy][col+dx]; tot++;