Highlight Reconstruction/Colour propagation uses uninitialised values, Issue 2293

This commit is contained in:
Ingo
2014-03-17 14:22:12 +01:00
parent ec65d7c86b
commit e19c8c8dcd
2 changed files with 3 additions and 2 deletions

View File

@@ -652,7 +652,7 @@ void RawImageSource :: HLRecovery_inpaint (float** red, float** green, float** b
//%%%%%%%%%%%%%%%%%%%%%%%
//estimate recovered values using modified HLRecovery_blend algorithm
float rgb[ColorCount], rgb_blend[ColorCount], cam[2][ColorCount], lab[2][ColorCount], sum[2], chratio;
float rgb[ColorCount], rgb_blend[ColorCount] = {}, cam[2][ColorCount], lab[2][ColorCount], sum[2], chratio;
// Copy input pixel to rgb so it's easier to access in loops
rgb[0] = pixel[0]; rgb[1] = pixel[1]; rgb[2] = pixel[2];

View File

@@ -88,6 +88,7 @@ RawImageSource::RawImageSource ()
camProfile = NULL;
embProfile = NULL;
rgbSourceModified = false;
hlmax[0] = hlmax[1] = hlmax[2] = hlmax[3] = 0.f;
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -973,7 +974,7 @@ int RawImageSource::load (Glib::ustring fname, bool batch) {
plistener=NULL; // This must be reset, because only load() is called through progressConnector
t2.set();
if( settings->verbose )
printf("Load %s: %d µsec\n",fname.c_str(), t2.etime(t1));
printf("Load %s: %d <EFBFBD>sec\n",fname.c_str(), t2.etime(t1));
return 0; // OK!
}