]> git.nihav.org Git - nihav.git/commitdiff
cook: force mono mode for v1
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 20 Oct 2018 09:26:12 +0000 (11:26 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 20 Oct 2018 09:26:12 +0000 (11:26 +0200)
src/codecs/real/cook.rs

index d8e63ce200caf340596cab8e8c27af9776b703fd..a03a5bb670be28920a0749c8a5f55c0f3ac79d98 100644 (file)
@@ -568,6 +568,7 @@ impl NADecoder for CookDecoder {
                         self.pairs[0].read_hdr_v1(&mut br)?;
                         self.channels = self.pairs[0].mode.get_channels();
                         if ainfo.get_channels() == 1 { // forced mono
+                            self.pairs[0].mode = Mode::Mono;
                             self.channels       = 1;
                             chmap = 0x4;
                         } else {