From: Kostya Shishkov Date: Wed, 27 Nov 2019 14:02:39 +0000 (+0100) Subject: avi demuxer: sample size is already in bits X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=b33d38e0cb9907f59e2f354ac7a2ff015e5e978c;p=nihav.git avi demuxer: sample size is already in bits --- diff --git a/nihav-commonfmt/src/demuxers/avi.rs b/nihav-commonfmt/src/demuxers/avi.rs index 6bfb4eb..ec326ff 100644 --- a/nihav-commonfmt/src/demuxers/avi.rs +++ b/nihav-commonfmt/src/demuxers/avi.rs @@ -381,7 +381,7 @@ fn parse_strf_auds(dmx: &mut AVIDemuxer, strmgr: &mut StreamManager, size: usize let samplespersec = dmx.src.read_u32le()?; let avgbytespersec = dmx.src.read_u32le()?; let block_align = dmx.src.read_u16le()?; - let bits_per_sample = dmx.src.read_u16le()? * 8; + let bits_per_sample = dmx.src.read_u16le()?; let soniton = NASoniton::new(bits_per_sample as u8, SONITON_FLAG_SIGNED); let ahdr = NAAudioInfo::new(samplespersec, channels as u8, soniton, block_align as usize);