scottlamb / retina

High-level RTSP multimedia streaming library, in Rust
https://crates.io/crates/retina
Apache License 2.0
244 stars 48 forks source link

aac.rs miss a frequency arm "0x4 => 41_000," #22

Closed qianzhang5 closed 3 years ago

qianzhang5 commented 3 years ago

let sampling_frequency = match r .read_u8(4) .map_err(|e| format!("unable to read sampling_frequency: {}", e))? { 0x0 => 96_000, 0x1 => 88_200, 0x2 => 64_000, 0x3 => 48_000, 0x4 => 41_000, //<----- missing 0x5 => 32_000, 0x6 => 24_000, 0x7 => 22_050, 0x8 => 16_000, 0x9 => 12_000, 0xa => 11_025, 0xb => 8_000, 0xc => 7_350,

scottlamb commented 3 years ago

Thanks for catching this! I'll fix it when I get a chance later, unless you want to send a PR yourself.