From 61f297ef528c4a7c4cc855938cfbb25b239e1af7 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 10:50:50 +0300 Subject: [PATCH] ec-ac3 mantissa.rs: restore original doc text (no new comments) --- crates/ec-ac3/src/mantissa.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ec-ac3/src/mantissa.rs b/crates/ec-ac3/src/mantissa.rs index 76b405e3..99d2d472 100644 --- a/crates/ec-ac3/src/mantissa.rs +++ b/crates/ec-ac3/src/mantissa.rs @@ -62,7 +62,7 @@ impl Dither { self.mantissa() as f32 / 5_931_008.0 * 1.732_050_8 } - /// ffmpeg's integer dither mantissa at 2^23 full scale: `((x >> 8) * 181 >> 8) - 5931008`. + /// ffmpeg's integer dither mantissa: `((x >> 8) * 181 >> 8) - 5931008`. pub fn mantissa(&mut self) -> i32 { let x = self.next_word(); let u = ((x >> 8) * 181) >> 8; @@ -101,9 +101,9 @@ impl Mantissas { Mantissas::default() } - /// One mantissa in `[-2^23, 2^23)`, before the exponent is applied. + /// One mantissa value in `[-1, 1)`, before the exponent is applied. /// - /// `bap == 0` returns 0; the caller decides whether that bin gets dither, + /// `bap == 0` returns 0.0; the caller decides whether that bin gets dither, /// because in the coupled range the decision belongs to the channel rather /// than to the coupling channel the mantissa came from. pub fn read(&mut self, r: &mut BitReader<'_>, bap: u8) -> Result {