diff --git a/rtengine/rawimagesource.cc b/rtengine/rawimagesource.cc index 339b16dae..2b3861127 100644 --- a/rtengine/rawimagesource.cc +++ b/rtengine/rawimagesource.cc @@ -420,19 +420,21 @@ int RawImageSource::cfaCleanFromMap( PixelsMap &bitmapBads ) */ int RawImageSource::findHotDeadPixel( PixelsMap &bpMap, float thresh) { - int counter=0; + volatile int counter=0; unsigned short (*cfablur); cfablur = (unsigned short (*)) calloc (H*W, sizeof *cfablur); - int iprev,inext,jprev,jnext; - unsigned short p[9],temp; - int top, bottom, left, right; + + + #pragma omp parallel { #pragma omp for for (int i=0; iH-3) {inext=i-2;} else {inext=i+2;} for (int j=0; j