From: Kostya Shishkov Date: Mon, 5 Apr 2021 16:33:32 +0000 (+0200) Subject: cook: build multichannel map X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=1ef35f7db87bedd55ce3c833e62ec6857250fa7e;p=nihav.git cook: build multichannel map --- diff --git a/nihav-realmedia/src/codecs/cook.rs b/nihav-realmedia/src/codecs/cook.rs index c3e8276..b4e17f3 100644 --- a/nihav-realmedia/src/codecs/cook.rs +++ b/nihav-realmedia/src/codecs/cook.rs @@ -582,6 +582,7 @@ impl NADecoder for CookDecoder { let pair_chmap = self.pairs[i].read_hdr_v2(&mut br)?; self.pairs[i].start_ch = start_ch; validate!((chmap & pair_chmap) == 0); + chmap |= pair_chmap; start_ch += self.pairs[i].mode.get_channels(); } self.channels = start_ch;