From 429e677e761ee6f41da3cc64f3db965180d7ccaa Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 11 Nov 2023 15:10:12 +0100 Subject: [PATCH] OnlyVideo/OnlyAudio muxer capabilities mean several streams are accepted --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9811584..977eb38 100644 --- a/src/main.rs +++ b/src/main.rs @@ -797,7 +797,7 @@ println!("can't generate default channel map for {} channels", dainfo.channels); let mut found_vid = false; for (iidx, istr) in src_sm.iter().enumerate() { - if istr.get_media_type() == StreamType::Video && !found_vid { + if istr.get_media_type() == StreamType::Video { match self.register_output_stream("any", istr, iidx, out_sm, enc_reg) { RegisterResult::Ok => found_vid = true, RegisterResult::Failed => return false, @@ -814,7 +814,7 @@ println!("can't generate default channel map for {} channels", dainfo.channels); let mut found_aud = false; for (iidx, istr) in src_sm.iter().enumerate() { - if istr.get_media_type() == StreamType::Audio && !found_aud { + if istr.get_media_type() == StreamType::Audio { match self.register_output_stream("any", istr, iidx, out_sm, enc_reg) { RegisterResult::Ok => found_aud = true, RegisterResult::Failed => return false, -- 2.30.2