ref: 3d675c12334bff6b7e3758f51bcc519afd2f192f
parent: 454738fa876949985a78e454a6f8419edbe4e7af
author: Ronald S. Bultje <[email protected]>
date: Tue Nov 27 12:25:44 EST 2018
Round up film grain block count Fixes green lines in #197.
--- a/src/film_grain_tmpl.c
+++ b/src/film_grain_tmpl.c
@@ -476,7 +476,7 @@
generate_scaling(data->uv_points[1], data->num_uv_points[1], scaling[2]);
// Synthesize grain for the affected planes
- int rows = (out->p.h + 16) >> 5;
+ int rows = (out->p.h + 31) >> 5;
for (int row = 0; row < rows; row++) {
if (data->num_y_points)
apply_to_row_y(out, in, grain_lut[0], scaling[0], row);