Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -179,7 +179,7 @@ static void precalc_coefs(double dist25, int depth, int16_t *ct) · 178 unmodified lines | ||
| 179 | 179 | |
| 180 | 180 | gamma = log(0.25) / log(1.0 - FFMIN(dist25,252.0)/255.0 - 0.00001); |
| 181 | 181 | |
| 182 | − for (i = -256<<LUT_BITS; i < 256<<LUT_BITS; i++) { | |
| 182 | + for (i = -(256<<LUT_BITS); i < 256<<LUT_BITS; i++) { | |
| 183 | 183 | double f = ((i<<(9-LUT_BITS)) + (1<<(8-LUT_BITS)) - 1) / 512.0; // midpoint of the bin |
| 184 | 184 | simil = FFMAX(0, 1.0 - fabs(f) / 255.0); |
| 185 | 185 | C = pow(simil, gamma) * 256.0 * f; |