From: Øyvind Kolås Date: Fri, 7 Aug 2020 20:03:51 +0000 (+0200) Subject: babl: expand sRGB formula trc storage with 2 more parameters X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~7^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a7d1602fd503f039ffceca63e632841f2d7bc815;p=babl.git babl: expand sRGB formula trc storage with 2 more parameters --- diff --git a/babl/babl-trc.c b/babl/babl-trc.c index cfb31b1..b1ba8a8 100644 --- a/babl/babl-trc.c +++ b/babl/babl-trc.c @@ -422,10 +422,10 @@ babl_trc_new (const char *name, POLY_GAMMA_DEGREE, POLY_GAMMA_SCALE); break; case BABL_TRC_FORMULA_SRGB: - trc_db[i].lut = babl_calloc (sizeof (float), 5); + trc_db[i].lut = babl_calloc (sizeof (float), 7); { int j; - for (j = 0; j < 5; j++) + for (j = 0; j < 7; j++) trc_db[i].lut[j] = lut[j]; } trc_db[i].fun_to_linear = _babl_trc_formula_srgb_to_linear;