diff --git a/crates/ec-ogg/tests/ogg.rs b/crates/ec-ogg/tests/ogg.rs index 725e32ed..b006678f 100644 --- a/crates/ec-ogg/tests/ogg.rs +++ b/crates/ec-ogg/tests/ogg.rs @@ -341,8 +341,9 @@ fn damage_costs_one_page_and_no_more() { let (_, clean, _) = demux_all(path); let bytes = std::fs::read(path).unwrap(); - // Flip a bit in the middle of the file: that lands inside a page body, so - // the page's checksum fails and its packets are lost — and nothing else is. + // Flip a bit three quarters in: past the header pages and inside an audio + // page with audio on both sides, so the page's checksum fails and its + // packets are lost — and nothing else is. let mut damaged = bytes.clone(); let at = damaged.len() * 3 / 4; damaged[at] ^= 0x40;