diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-10-09 18:55:10 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-10-09 18:55:10 +0200 |
commit | 86b51082f5aa5b94e40aec40c6963ec34071f9b5 (patch) | |
tree | 3a3a059aa1caf34e9d89e581fcc1d2b94a4c5f34 | |
parent | a115a6747969351a68c4bc7e75cbcf756a9fa4c5 (diff) | |
download | nihav-86b51082f5aa5b94e40aec40c6963ec34071f9b5.tar.gz |
binkmux: hopefully set audio codec flags correctly this time
-rw-r--r-- | nihav-rad/src/muxers/bink.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nihav-rad/src/muxers/bink.rs b/nihav-rad/src/muxers/bink.rs index e1d2fb0..3a7240d 100644 --- a/nihav-rad/src/muxers/bink.rs +++ b/nihav-rad/src/muxers/bink.rs @@ -140,13 +140,14 @@ 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)?; } for i in 0..self.naudio { |