prevent crash if size area inf to 32x32 with cbdl

This commit is contained in:
Desmis
2019-04-03 17:12:08 +02:00
parent 0a3c657edb
commit 4b67b0d9ac
2 changed files with 39 additions and 38 deletions

View File

@@ -1284,6 +1284,7 @@ void CurveFactory::complexCurvelocal(double ecomp, double black, double hlcompr,
for (int i = 0; i <= (maxran - 1.f); i += 4) {
vfloat valv = LVFU(dcurve[i]);
valv = igamma(valv, gamma_v, startv, slopev, mulv, addv);
// valv = Color::igammatab_bt709[valv];
STVFU(outCurve[i], c65535v * valv);
}