Fix T47094: Crash w/ sequencer white-balance

This commit is contained in:
Campbell Barton
2015-12-31 18:14:41 +11:00
parent 7a702ba1d5
commit 88477fe2bf

View File

@@ -203,7 +203,7 @@ static void whiteBalance_apply_threaded(int width, int height, unsigned char *re
for (y = 0; y < height; y++) {
for (x = 0; x < width; x++) {
int pixel_index = (y * width + x) * 4;
float result[3], mask[3] = {1.0f, 1.0f, 1.0f};
float result[4], mask[3] = {1.0f, 1.0f, 1.0f};
if (rect_float) {
copy_v3_v3(result, rect_float + pixel_index);