Fixes artifacts caused by amaze, Issue 1835

This commit is contained in:
Ingo
2013-11-16 19:14:50 +01:00
parent 7a80d235d5
commit b190c1547d

View File

@@ -158,7 +158,7 @@ SSEFUNCTION void RawImageSource::amaze_demosaic_RT(int winx, int winy, int winw,
#define CLF 1
// assign working space
buffer = (char *) malloc(22*sizeof(float)*TS*TS + sizeof(char)*TS*TSH+23*CLF*64 + 63);
buffer = (char *) calloc(22*sizeof(float)*TS*TS + sizeof(char)*TS*TSH+23*CLF*64 + 63, 1);
char *data;
data = (char*)( ( uintptr_t(buffer) + uintptr_t(63)) / 64 * 64);