1
mirror of https://code.videolan.org/videolan/dav1d synced 2024-09-27 11:50:24 +02:00

Add rounding to Loop filter chroma vertical end

This commit is contained in:
Luc Trudeau 2018-09-25 16:37:10 +02:00
parent 48ccacc1bc
commit 533dccd926

View File

@ -249,7 +249,7 @@ void bytefn(dav1d_loopfilter_sbrow)(const Dav1dFrameContext *const f,
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;