Commit d41c68cf authored by Ronald S. Bultje's avatar Ronald S. Bultje

Fix looprestoration intermediate upper limit

Fixes #80.
parent 80e47425
......@@ -162,7 +162,7 @@ static void wiener_c(pixel *p, const ptrdiff_t p_stride,
}
hor_ptr[i] =
iclip((sum + rounding_off_h) >> round_bits_h, 0, clip_limit);
iclip((sum + rounding_off_h) >> round_bits_h, 0, clip_limit - 1);
}
tmp_ptr += REST_UNIT_STRIDE;
hor_ptr += REST_UNIT_STRIDE;
......
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