Buffer underrun when CBDL is activated and all levels set to 1.0, Issue 2294

This commit is contained in:
Ingo
2014-03-17 14:14:22 +01:00
parent 87e268e794
commit 34816123bb

View File

@@ -70,7 +70,7 @@ namespace rtengine {
if(atten0 < 0.f) atten0=0.f;
while (fabs(mult[lastlevel-1]-1)<0.001 && lastlevel>0) {
while (lastlevel>0 && fabs(mult[lastlevel-1]-1)<0.001) {
lastlevel--;
//printf("last level to process %d \n",lastlevel);
}