From 1ef35f7db87bedd55ce3c833e62ec6857250fa7e Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 5 Apr 2021 18:33:32 +0200 Subject: [PATCH] cook: build multichannel map --- nihav-realmedia/src/codecs/cook.rs | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5