]> git.nihav.org Git - nihav.git/commitdiff
cook: build multichannel map
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 5 Apr 2021 16:33:32 +0000 (18:33 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 5 Apr 2021 16:33:32 +0000 (18:33 +0200)
nihav-realmedia/src/codecs/cook.rs

index c3e82767a34c3263044f78197a3b97dd2d529cea..b4e17f3f6f2163fc6a4df78956ba316f33858193 100644 (file)
@@ -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;