From 86b51082f5aa5b94e40aec40c6963ec34071f9b5 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 9 Oct 2023 18:55:10 +0200 Subject: [PATCH] binkmux: hopefully set audio codec flags correctly this time --- nihav-rad/src/muxers/bink.rs | 7 ++++--- 1 file 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,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)?; } -- 2.39.5