aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2023-10-09 18:55:10 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2023-10-09 18:55:10 +0200
commit86b51082f5aa5b94e40aec40c6963ec34071f9b5 (patch)
tree3a3a059aa1caf34e9d89e581fcc1d2b94a4c5f34
parenta115a6747969351a68c4bc7e75cbcf756a9fa4c5 (diff)
downloadnihav-86b51082f5aa5b94e40aec40c6963ec34071f9b5.tar.gz
binkmux: hopefully set audio codec flags correctly this time
-rw-r--r--nihav-rad/src/muxers/bink.rs7
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 {