ec-av1: pin the flipped-oracle gate's frame count to the fixture
Browse files at this commitd5d2837e7e7471e0377f184dbfe3e6c8972462abParent: 6d3c29f1 changed file +6 -1
crates/ec-av1/src/stream.rsmodified+6 -1
| @@ -6894,7 +6894,12 @@ pub(crate) mod tests { | ||
| 6894 | 6894 | |
| 6895 | 6895 | let decoded = decode_stream(&data) |
| 6896 | 6896 | .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); | |
| 6898 | 6903 | assert_eq!(decoded.len(), want.len(), "{NAME}: decoded/frame count"); |
| 6899 | 6904 | |
| 6900 | 6905 | let plane_mismatches = |ours: &[Pic], theirs: &[Pic], plane: u8| -> usize { |