forge
Explore
Log in

Don't you dare go Hollow

ec-av1: pin the flipped-oracle gate's frame count to the fixture

Browse files at this commit

d5d2837e7e7471e0377f184dbfe3e6c8972462abAhmet Kaan GümüşParent: 6d3c29f
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.rsmodified+6 -1
@@ -6894,7 +6894,12 @@ pub(crate) mod tests {
68946894
68956895 let decoded = decode_stream(&data)
68966896 .unwrap_or_else(|e| panic!("{NAME}: the committed 4:2:0 pin did not decode: {e}"));
6897- let want = ffmpeg_decode_sequence(&data, 256, 128, decoded.len());
6897+ // The pin name is the spec: `420_mixll_256x128_6f` is 6 shown frames.
6898+ // `decoded.len()` is the value under test, so it must not be the count
6899+ // handed to ffmpeg (count-vacuity ceiling is 0).
6900+ const SHOWN: usize = 6;
6901+ assert_eq!(decoded.len(), SHOWN, "{NAME}: the pin is 6 shown frames");
6902+ let want = ffmpeg_decode_sequence(&data, 256, 128, SHOWN);
68986903 assert_eq!(decoded.len(), want.len(), "{NAME}: decoded/frame count");
68996904
69006905 let plane_mismatches = |ours: &[Pic], theirs: &[Pic], plane: u8| -> usize {