ref: d41c68cf836318b580d2e2b0b3292220ff76c0f4
parent: 80e47425e6ca9834e19930ce9663009e421f314c
author: Ronald S. Bultje <rsbultje@gmail.com>
date: Sat Oct 20 16:17:25 EDT 2018
Fix looprestoration intermediate upper limit Fixes #80.
--- a/src/looprestoration.c
+++ b/src/looprestoration.c
@@ -162,7 +162,7 @@
}
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;