dcraw: do not use CameraCalibration matrices when loading DNG files

This is to make sure that DNG-converted and original raw files are processed in the same way

Fixes #4129
This commit is contained in:
Alberto Griggio 2017-10-09 09:46:00 +02:00
parent d84a3fd40a
commit 1fdc2d7b49

View File

@ -6244,6 +6244,16 @@ guess_cfa_pc:
free (buf);
}
/* RT -- do not use CameraCalibration matrices for DNGs - see #4129 */
for (j=0; j < 4; j++) {
ab[j] = 1;
for (i=0; i < 4; i++) {
cc[0][j][i] = i == j;
cc[1][j][i] = i == j;
}
}
/* RT end */
for (i=0; i < colors; i++)
FORCC cc[cm_D65][i][c] *= ab[i];
if (use_cm) {