From: Kostya Shishkov Date: Sat, 20 Oct 2018 09:26:12 +0000 (+0200) Subject: cook: force mono mode for v1 X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=b7eda71d5d19c8c80fe2c280df439c79217f454c;p=nihav.git cook: force mono mode for v1 --- diff --git a/src/codecs/real/cook.rs b/src/codecs/real/cook.rs index d8e63ce..a03a5bb 100644 --- a/src/codecs/real/cook.rs +++ b/src/codecs/real/cook.rs @@ -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 {