forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to lanes/rectx-r3.handoff.mdClear filter

2026-09-01

fix(av1): 16x8/8x16 intra strips never read use_filter_intra -- one dropped symbol per DC_PRED rect leaf desynced the tileAhmet Kaan Gümüş · 7f6f585
fix(av1): 16x8/8x16 intra strips never read use_filter_intra -- one dropped symbol per DC_PRED rect leaf desynced the tile

av1_filter_intra_allowed_bsize is 'both sides <= 32', so libaom reads the
use_filter_intra flag for every DC_PRED 16x8/8x16 block; filter_intra_size_class_rect
returned None at those two sizes, so decode_leaf_rect skipped a symbol the encoder
wrote and every following block decoded from a desynced entropy stream -- silently,
with no error and a whole-frame pixel mismatch. Adds default_filter_intra_cdfs rows
5 (BLOCK_16X8, 9394) and 4 (BLOCK_8X16, 12551) and an asymmetric pin for the pair.

Root-caused against the instrumented aomdec EC_TRACE_COEFF ladder: at leaf mi=(2,4)
ours and the oracle both decode mode=0 uv_mode=9 skip=0, our range 34808 vs the
oracle's 40668; after the fix both are 40668 and the next transform block's all_zero
reads 40269 in both. The same ladder proves r2's rect coefficient path (scans, eob
alphabets, txb sets, nz-map/br/DC-sign contexts) bit-exact for a real non-skip
TX_16X8 leaf and both its TX_8X4 chroma halves.

Lane gate stays RED and no refusal is lifted: a second, independent defect (the
rect leaf's kf_y_mode context comes from the coarse 16x16 neighbour grid, not the
real mi grid) is located to the element in lanes/rectx-r3.handoff.md.

cargo test -p ec-av1 --lib: 269 passed, 1 failed (this lane's own gate), 24 ignored.