Bug 726586 - Uninitialised value use in build_input_gamma_table. r=jrmuizel

--HG--
extra : rebase_source : c156458305645abe6e2fa39697c3281f24588822
This commit is contained in:
Julian Seward ext:(%2C%20Benoit%20Girard%20%3Cbgirard%40mozilla.com%3E) 2012-12-10 11:10:26 -05:00
parent 2ce1d46f44
commit 4d976bb023

View File

@ -426,7 +426,7 @@ static struct curveType *read_curveType(struct mem_source *src, uint32_t offset,
return NULL;
curve->count = count;
curve->type = type;
curve->type = CURVE_TYPE;
for (i=0; i<count; i++) {
curve->data[i] = read_u16(src, offset + 12 + i*2);
@ -445,7 +445,7 @@ static struct curveType *read_curveType(struct mem_source *src, uint32_t offset,
return NULL;
curve->count = count;
curve->type = type;
curve->type = PARAMETRIC_CURVE_TYPE;
for (i=0; i < COUNT_TO_LENGTH[count]; i++) {
curve->parameter[i] = s15Fixed16Number_to_float(read_s15Fixed16Number(src, offset + 12 + i*4));
@ -848,6 +848,7 @@ static struct curveType *curve_from_gamma(float gamma)
return NULL;
curve->count = num_entries;
curve->data[0] = float_to_u8Fixed8Number(gamma);
curve->type = CURVE_TYPE;
return curve;
}