From d5d2837e7e7471e0377f184dbfe3e6c8972462ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 3 Oct 2026 13:54:34 +0300 Subject: [PATCH] ec-av1: pin the flipped-oracle gate's frame count to the fixture a_420_oracle_comparator_counts_a_flipped_oracle_sample passed decoded.len() as ffmpeg's expected frame count. That is the count-vacuity shape the ceiling of 0 exists to catch, and it red the sweep on main and on both running server suites. The pin is 420_mixll_256x128_6f: 6 shown frames, asserted before the call, and that constant is what ffmpeg receives. --- crates/ec-av1/src/stream.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 10b7469b..753fcc70 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -6894,7 +6894,12 @@ pub(crate) mod tests { let decoded = decode_stream(&data) .unwrap_or_else(|e| panic!("{NAME}: the committed 4:2:0 pin did not decode: {e}")); - let want = ffmpeg_decode_sequence(&data, 256, 128, decoded.len()); + // The pin name is the spec: `420_mixll_256x128_6f` is 6 shown frames. + // `decoded.len()` is the value under test, so it must not be the count + // handed to ffmpeg (count-vacuity ceiling is 0). + const SHOWN: usize = 6; + assert_eq!(decoded.len(), SHOWN, "{NAME}: the pin is 6 shown frames"); + let want = ffmpeg_decode_sequence(&data, 256, 128, SHOWN); assert_eq!(decoded.len(), want.len(), "{NAME}: decoded/frame count"); let plane_mismatches = |ours: &[Pic], theirs: &[Pic], plane: u8| -> usize {