diff --git a/crates/ec-ac3/src/decode.rs b/crates/ec-ac3/src/decode.rs index 363957b1..e5a91c15 100644 --- a/crates/ec-ac3/src/decode.rs +++ b/crates/ec-ac3/src/decode.rs @@ -36,8 +36,6 @@ pub enum Syntax { } impl Syntax { - /// The syntax of the syncframe at `data`, read from bsid, which sits in - /// the sixth byte of both. `None` when there are not six bytes yet. pub(crate) fn of(data: &[u8]) -> Option { let bsid = *data.get(5)? >> 3; Some(if bsid <= 10 { Syntax::Ac3 } else { Syntax::Eac3 }) diff --git a/crates/ec-ac3/src/decoder.rs b/crates/ec-ac3/src/decoder.rs index f30751a7..94e00880 100644 --- a/crates/ec-ac3/src/decoder.rs +++ b/crates/ec-ac3/src/decoder.rs @@ -413,7 +413,6 @@ impl Ac3Decoder { } } - /// Per-channel gains into the left and right downmix sums (ยง7.8.2). fn downmix_gains(info: &FrameInfo, positions: &[ChannelPosition]) -> (Vec, Vec) { let clev = info.center_mix_level.unwrap_or(0.707); let slev = info.surround_mix_level.unwrap_or(0.707);