From 82d53f6e7f228477f82e37c7a1c5a0995213de75 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 5 Jan 2024 18:10:15 +0100 Subject: [PATCH] force PCM audio processing in (almost) all cases --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 977eb38..ee6ba25 100644 --- a/src/main.rs +++ b/src/main.rs @@ -627,7 +627,8 @@ impl Transcoder { } }, (NACodecTypeInfo::Audio(sainfo), NACodecTypeInfo::Audio(dainfo)) => { - if sainfo == dainfo { + let icodec = istr.get_info().get_name(); + if (sainfo == dainfo) && (icodec != "pcm" || oopts.enc_name.as_str() == "pcm") { OutputConvert::None } else { let dchmap = match dainfo.channels { -- 2.39.5