From f1a6012e43dbd3f7433eb2b54f063a4a17587622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 29 Aug 2026 02:58:52 +0300 Subject: [PATCH] fix(av1): overlappable_left steps by the neighbour's height The OBMC left-column walk stepped by MiInfo.size (width); a 32x16 left strip swallowed the strip below it and its band blended the wrong neighbour prediction (rect-flake-3, +-2 in the second strip's band). Class sweep: all other grid walks step by the matching axis. Pin added; lib 221/0. --- crates/ec-av1/src/decode.rs | 4 +++- crates/ec-av1/src/stream.rs | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index d4d5ac9b..5e184719 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -4319,7 +4319,9 @@ fn overlappable_left( let mut row = mi_row; while row < end_row && out.len() < max_neighbors { let cell = grid.get(row, mi_col - 1); - let step = cell.map_or(1, |c| c.size).max(1); + // Vertical walk steps by the neighbour's HEIGHT -- a 32x16 strip's + // width (8) would swallow the strip below it. + let step = cell.map_or(1, |c| c.size_h).max(1); if let Some(info) = cell { if info.is_inter { out.push((row - mi_row, step.min(end_row - row), *info)); diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index fa9e4699..d978408c 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -4089,6 +4089,10 @@ mod tests { // block under a 32x16 strip, and suppressed the -5 extended // row scan. "rect-flake-2", + // overlappable_left stepped the vertical walk by the + // neighbour's WIDTH: a 32x16 left strip swallowed the strip + // below it, blending the wrong OBMC prediction there. + "rect-flake-3", ] .iter() .map(|n| format!("{fixtures}/{n}.obu"))