From: Kostya Shishkov Date: Sun, 24 May 2020 13:26:11 +0000 (+0200) Subject: avimux: remove obsoleted workaround X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=586ea1879dd193fa71d16302e1c54deb269bc732;p=nihav.git avimux: remove obsoleted workaround --- 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