From d293626f59d2bc15dcff83af03072688eed7656a Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 15 Jun 2017 12:49:08 +0200 Subject: [PATCH] avi: output bps for audio in bits --- src/demuxers/avi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5