Issue 2008: fixed camconst.json parse bug; added iso-dependent white levels for Canon EOS 5D Mark II

This commit is contained in:
torger
2013-10-16 21:20:09 +02:00
parent 39f5f6701a
commit 1b98fe4d18
2 changed files with 34 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ CameraConst::parseLevels(CameraConst *cc, int bw, void *ji_)
}
struct camera_const_levels lvl;
if (js->type == cJSON_Number) {
lvl.levels[0] = lvl.levels[1] = lvl.levels[2] = lvl.levels[3] = ji->valueint;
lvl.levels[0] = lvl.levels[1] = lvl.levels[2] = lvl.levels[3] = js->valueint;
} else if (js->type == cJSON_Array) {
int i;
for (js = js->child, i = 0; js != NULL && i < 4; js = js->next, i++) {