From 586ea1879dd193fa71d16302e1c54deb269bc732 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 24 May 2020 15:26:11 +0200 Subject: [PATCH] avimux: remove obsoleted workaround --- nihav-commonfmt/src/muxers/avi.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nihav-commonfmt/src/muxers/avi.rs b/nihav-commonfmt/src/muxers/avi.rs index d47aac3..8920b48 100644 --- a/nihav-commonfmt/src/muxers/avi.rs +++ b/nihav-commonfmt/src/muxers/avi.rs @@ -202,8 +202,7 @@ impl<'a> MuxCore<'a> for AVIMuxer<'a> { if twocc.is_none() { return Err(MuxerError::UnsupportedFormat); } - let twocc = twocc.unwrap_or(0); - self.bw.write_u16le(if twocc == 0 { 1 } else { twocc })?; // PCM hack + self.bw.write_u16le(twocc.unwrap_or(0))?; self.bw.write_u16le(ainfo.channels as u16)?; self.bw.write_u32le(ainfo.sample_rate)?; self.bw.write_u32le(0)?; // avg bytes per second -- 2.39.5