]> git.nihav.org Git - nihav.git/commitdiff
avimux: remove obsoleted workaround
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 24 May 2020 13:26:11 +0000 (15:26 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 24 May 2020 13:26:11 +0000 (15:26 +0200)
nihav-commonfmt/src/muxers/avi.rs

index d47aac3570685d70464369ea897f81f23168a8e6..8920b48d28d96d79f2ef2b78da1df5401f6055d2 100644 (file)
@@ -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