ref: 6fa9df9c6f6c620ea6f3d9848465adbdf958648f
parent: 2e991b1479431081bc1634ec91191763d11b05a4
author: Ronald S. Bultje <[email protected]>
date: Wed Oct 24 09:14:56 EDT 2018
Add tile constraint to loopfilter mask fix-up code Fixes #92.
--- a/src/lf_apply.c
+++ b/src/lf_apply.c
@@ -163,7 +163,7 @@
// fix lpf strength at tile col boundaries
const uint8_t *lpf_y = &f->lf.tx_lpf_right_edge[0][sby << sbl2];
const uint8_t *lpf_uv = &f->lf.tx_lpf_right_edge[1][sby << (sbl2 - ss_ver)];
- for (int tile_col = 1;; tile_col++) {
+ for (int tile_col = 1; tile_col < f->frame_hdr.tiling.cols; tile_col++) {
x = f->frame_hdr.tiling.col_start_sb[tile_col];
if ((x << sbl2) >= f->bw) break;
const int bx4 = x & is_sb64 ? 16 : 0, cbx4 = bx4 >> ss_hor;