Commit 718bb971 authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

Fix upper bound of loopfilter hev strength.

Fixes #21.
parent de3a894a
Pipeline #502 passed with stage
in 1 minute and 7 seconds
......@@ -130,7 +130,7 @@ loop_filter(pixel *dst, int E, int I, int H,
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;
......
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