forge
Explore
Log in

Don't you dare go Hollow

tests: drop v410 case (ffmpeg 9 has no v410 encoder or decoder); wav skips mp3src.wav (stereo, no layout in name); ogg damage at 3/4 of the file so the first audio page is not the damaged one

Browse files at this commit

c8c31df9a8086e2031855c123e25b177f57ea800Ahmet Kaan GümüşParent: 315ba37
crates/ec-ogg/tests/ogg.rsmodified+1 -1
@@ -344,7 +344,7 @@ fn damage_costs_one_page_and_no_more() {
344 // Flip a bit in the middle of the file: that lands inside a page body, so344 // Flip a bit in the middle of the file: that lands inside a page body, so
345 // the page's checksum fails and its packets are lost — and nothing else is.345 // the page's checksum fails and its packets are lost — and nothing else is.
346 let mut damaged = bytes.clone();346 let mut damaged = bytes.clone();
347- let at = damaged.len() / 2;347+ let at = damaged.len() * 3 / 4;
348 damaged[at] ^= 0x40;348 damaged[at] ^= 0x40;
349 let out = workdir("damage").join("flipped.ogg");349 let out = workdir("damage").join("flipped.ogg");
350 std::fs::write(&out, &damaged).unwrap();350 std::fs::write(&out, &damaged).unwrap();
crates/ec-riff/tests/it/mov_raw.rsmodified+1 -9
@@ -1,4 +1,4 @@
1-//! Uncompressed video in QuickTime (`raw `, `2vuy`, `yuv2`, `v210`, `v410`, `b16g`), compared1+//! Uncompressed video in QuickTime (`raw `, `2vuy`, `yuv2`, `v210`, `b16g`), compared
2 2
3 use std::path::PathBuf;3 use std::path::PathBuf;
4 4
@@ -74,14 +74,6 @@ fn mov_raw_layouts_match_ffmpeg() {
74 b"v210",74 b"v210",
75 "yuv422p10le",75 "yuv422p10le",
76 ),76 ),
77- (
78- "v410",
79- "98x66",
80- "v410",
81- "yuv444p10le",
82- b"v410",
83- "yuv444p10le",
84- ),
85 ("b16g", "98x66", "rawvideo", "gray16be", b"b16g", "gray16le"),77 ("b16g", "98x66", "rawvideo", "gray16be", b"b16g", "gray16le"),
86 ] {78 ] {
87 eprintln!("case {tag}");79 eprintln!("case {tag}");
crates/ec-riff/tests/it/wav.rsmodified+1 -1
@@ -438,7 +438,7 @@ fn reads_every_wav_fixture() {
438 continue;438 continue;
439 }439 }
440 let name = path.file_name().unwrap().to_string_lossy().to_string();440 let name = path.file_name().unwrap().to_string_lossy().to_string();
441- if name.starts_with('.') {441+ if name.starts_with('.') || name == "mp3src.wav" {
442 continue;442 continue;
443 }443 }
444 let mut r = WavReader::open(&path).unwrap_or_else(|e| panic!("{name}: {e}"));444 let mut r = WavReader::open(&path).unwrap_or_else(|e| panic!("{name}: {e}"));