From: Kostya Shishkov Date: Mon, 9 Oct 2023 16:55:10 +0000 (+0200) Subject: binkmux: hopefully set audio codec flags correctly this time X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=86b51082f5aa5b94e40aec40c6963ec34071f9b5;p=nihav.git binkmux: hopefully set audio codec flags correctly this time --- 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,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)?; }