From f9d88f7c3d389d8cf56139a843e608d60516e360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 30 Sep 2026 01:20:46 +0300 Subject: [PATCH] stream: pin the ignored rect-tx recipe sweep and the 32-level AB gate sweep_rectx_recipes asserts no verdict -- it counts mismatching frames and prints an 8x8 map -- but that COUNT is the number it reports, so a decode that showed fewer frames than the wire would silently under-report it. Pinned against '-vframes 1' like every other arm in that sweep, and the gate still runs only under --ignored. a_real_aomenc_stream_with_a_32_level_ab_partition renders 'gradients_source(..., duration=0.04:rate=25)' with '-frames:v 1' and runs aomenc with '--limit=1 --kf-max-dist=0', so all 16 seeds code 1 frame. count-vacuity sweep: 17 unpinned -> 15. --- crates/ec-av1/src/stream.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 28785d5a..cc67db55 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -28704,6 +28704,18 @@ pub(crate) mod tests { eprintln!("x={start_x} cq={cq} rtx={rtx} fired={fired} REFUSED {e}") } Ok(frames) => { + // The ENCODE's frame count: the y4m is rendered with + // `-t 1` and `-vframes 1` (28747) -- one frame, and + // the sources carry no explicit `:rate=` so that + // `-vframes` is the binding bound -- and aomenc runs + // with `--kf-max-dist=0` and no `--limit` + // (28782), so all 126 arms code exactly 1 frame. + // This sweep asserts no verdict, but `bad` below is + // the NUMBER of mismatching frames it reports, so a + // decode that showed fewer frames than the wire + // would silently under-report it. Pinned here, above + // the oracle call, for that reason. + assert_eq!(frames.len(), 1, "x={start_x} cq={cq} rtx={rtx} key frame"); let want = ffmpeg_decode_sequence(&stream, width, height, frames.len()); let bad = frames .iter() @@ -29307,6 +29319,12 @@ pub(crate) mod tests { .map(|((label, _), d)| format!("{label}={d}")) .collect(); let fired = fired.join(" "); + // The ENCODE's frame count: `gradients_source` (6015) is rendered with + // `duration=0.04:rate=25` (29116) and `-frames:v 1` (29119) caps the + // y4m at one frame; aomenc runs with `--limit=1` and + // `--kf-max-dist=0` (29150) and so codes exactly that one. Asserted + // ABOVE the oracle call -- it holds for every one of the 16 seeds. + assert_eq!(frames.len(), 1, "{NAME}: seed {seed} key frame"); let ffmpeg_frames = ffmpeg_decode_sequence(&stream, width, height, frames.len()); assert_eq!( frames.len(),