]> git.nihav.org Git - nihav.git/commitdiff
binkmux: hopefully set audio codec flags correctly this time
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 9 Oct 2023 16:55:10 +0000 (18:55 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 9 Oct 2023 16:55:10 +0000 (18:55 +0200)
nihav-rad/src/muxers/bink.rs

index e1d2fb0a07cc81a7b9e46d2d222f870a2b50b102..3a7240dac9c2ef62eb69afd403a07579d244ddc8 100644 (file)
@@ -140,12 +140,13 @@ impl<'a> MuxCore<'a> for BinkMuxer<'a> {
             let mut flags = 0;
             if info.get_name() == "bink-audio-dct" {
                 flags |= 0x10;
+                flags |= 0x40;
+            }
+            if info.get_name() == "bink-audio-rdft" {
+                flags |= 0x80;
             }
             if ainfo.channels == 2 {
                 flags |= 0x20;
-            }
-            if flags == 0x30 { // seems to be common
-                flags = 0x70;
             }
                                 self.bw.write_byte(flags)?;
         }