Commit 3d675c12 authored by Ronald S. Bultje's avatar Ronald S. Bultje

Round up film grain block count

Fixes green lines in #197.
parent 454738fa
......@@ -476,7 +476,7 @@ void bitfn(dav1d_apply_grain)(Dav1dPicture *const out,
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment