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"))