Partial decoding or wrong dimensions of X-T30 files, fixes #5709, code taken from ART

This commit is contained in:
Ingo Weyrich 2020-04-13 13:31:06 +02:00
parent 9cc744b1f6
commit 996ba0a9a3

View File

@ -10048,6 +10048,9 @@ canon_a5:
} else if (!strncmp(model, "X-A3", 4) || !strncmp(model, "X-A5", 4)) {
width = raw_width = 6016;
height = raw_height = 4014;
} else if (!strcmp(model, "X-Pro3") || !strcmp(model, "X-T3") || !strcmp(model, "X-T30")) {
width = raw_width = 6384;
height = raw_height = 4182;
}
top_margin = (raw_height - height) >> 2 << 1;
left_margin = (raw_width - width ) >> 2 << 1;