From: Kostya Shishkov Date: Thu, 15 Jun 2017 10:49:08 +0000 (+0200) Subject: avi: output bps for audio in bits X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=d293626f59d2bc15dcff83af03072688eed7656a;p=nihav.git avi: output bps for audio in bits --- diff --git a/src/demuxers/avi.rs b/src/demuxers/avi.rs index 2d2a261..67195c2 100644 --- a/src/demuxers/avi.rs +++ b/src/demuxers/avi.rs @@ -328,7 +328,7 @@ fn parse_strf_auds(dmx: &mut AVIDemuxer, size: usize) -> DemuxerResult { 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()?; + let bits_per_sample = dmx.src.read_u16le()? * 8; 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);