Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA committed Feb 8, 2025
1 parent 4c5f3e2 commit 59184c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lofty/src/aac/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ impl ADTSHeader {
// MMMOOOOO
let byte6 = header[5];

let len = (u16::from(byte4 & 0b11) << 11) | (u16::from(byte5) << 3) | (u16::from(byte6) >> 5);
let len =
(u16::from(byte4 & 0b11) << 11) | (u16::from(byte5) << 3) | (u16::from(byte6) >> 5);
let bitrate = ((u32::from(len) * sample_rate / 1024) * 8) / 1024;

if needs_crc_skip {
Expand Down

0 comments on commit 59184c0

Please sign in to comment.