forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to lanes/sbrect10-r2.report.mdClear filter

2026-09-02

fix(av1): compound MV stack zero-filled the comp_list tail libaom fills with global motionAhmet Kaan Gümüş · e2010ef
fix(av1): compound MV stack zero-filled the comp_list tail libaom fills with global motion

The compound extension pass (`combine_compound_candidates`, mvstack.rs) filled the
`comp_list` slots left over after `ref_id`/`ref_diff` with `(0, 0)`. libaom fills them
with that side's GLOBAL MOTION vector (`setup_ref_mv_list`, av1/common/mvref_common.c:729:
`for (; comp_idx < MAX_MV_REF_CANDIDATES; ++comp_idx)
   comp_list[comp_idx][idx] = gm_mv_candidates[idx];`).

The zero fill was only right under IDENTITY global motion, the module's original
reduction; aomenc has --enable-global-motion on by default. A compound block with no
usable neighbour pair (frame top row, an intra block to its left, an empty temporal
field) then took a (0, 0) predictor where libaom took the frame's translation --
mv0 (-1,2) vs (128,-16) on the first such block, 32890/39907 wrong luma samples on
decode-order frame 2 of a 10-bit cq58/cq61 stream, with the entropy stream still in
sync (180/180 TU all_zero ranges identical to aomdec).

Also this round:
- the no-CFL uv_mode gate's source becomes the half-random fixture, so BOTH the 8-bit
  and the 10-bit arm carry >=1 intra-above-32x32 block per compared attempt (the flat
  half made aomenc code the right-hand superblocks skip at 8 bit: 0 hits).
- EC_AV1_PREFILT_DUMP16 is indexed by decode-order picture (it overwrote .f0 every
  frame, so a mid-sequence divergence could not be read out).
- setup_motion_field prints an EC_TPL_FIELD occupancy map under the existing
  EC_TRACE_TPL rung.

Probe grid after the fix (192x128, 6 frames, half-random geq), pixel diffs vs ffmpeg:
8-bit cq52/58/61 = 0/0/0 (5/2/3 hits), 10-bit cq52/58/61 = 0/0/0 (6/7/7 hits);
was 0/0/0 and 0/32890/39907.