ref: 718bb97130b4cc7d06f2f13a069ec90580e7089c
parent: de3a894aff4e99afa87ad05b9f45057d008c9a54
author: Ronald S. Bultje <[email protected]>
date: Thu Sep 27 09:42:40 EDT 2018
Fix upper bound of loopfilter hev strength. Fixes #21.
--- a/src/loopfilter.c
+++ b/src/loopfilter.c
@@ -130,7 +130,7 @@
int hev = abs(p1 - p0) > H || abs(q1 - q0) > H;
#define iclip_diff(v) iclip(v, -128 * (1 << (BITDEPTH - 8)), \
- 127 * (1 << (BITDEPTH - 8)))
+ 128 * (1 << (BITDEPTH - 8)) - 1)
if (hev) {
int f = iclip_diff(p1 - q1), f1, f2;