ref: 533dccd92671b521fac8daa191dde6dbf8d4e7e2
parent: 48ccacc1bc61b8688ba8f8d9fafab48f5070a915
author: Luc Trudeau <ltrudeau@twoorioles.com>
date: Tue Sep 25 12:37:10 EDT 2018
Add rounding to Loop filter chroma vertical end
--- a/src/lf_apply.c
+++ b/src/lf_apply.c
@@ -249,7 +249,7 @@
lflvl[x].filter_y[0][y][0] &= ~mask;
lflvl[x].filter_y[0][y][imin(idx, lpf_y[y - starty4])] |= mask;
}
- for (int y = starty4 >> ss_ver; y < (endy4 >> ss_ver); y++) {
+ for (int y = starty4 >> ss_ver; y < ((endy4 + ss_ver) >> ss_ver); y++) {
const int idx = !!(lflvl[x].filter_uv[0][y][1] & uv_mask);
lflvl[x].filter_uv[0][y][1] &= ~uv_mask;
lflvl[x].filter_uv[0][y][0] &= ~uv_mask;