From 397395d3756c9481ea1e9155e26b47f314f0cf3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 06:46:04 +0300 Subject: [PATCH] ec-ogg test: damage comment matches the three-quarter offset (first audio page is not the one damaged) --- crates/ec-ogg/tests/ogg.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;