From b7eda71d5d19c8c80fe2c280df439c79217f454c Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 20 Oct 2018 11:26:12 +0200 Subject: [PATCH] cook: force mono mode for v1 --- src/codecs/real/cook.rs | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.39.5