aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuLong Yao <feilongphone@gmail.com>2023-10-02 08:55:55 +0800
committerYuLong Yao <feilongphone@gmail.com>2023-10-02 13:13:29 +0800
commitb83217d1d74deaafe3dc1e605c5d4ec572278d46 (patch)
treeabbe3b66c3819f5139c9d060e83c6e4ae3bda0ba
parent35d6c1465301689de098748a43fe12a282fcaec3 (diff)
use pcm as ext name when codec is pcm
-rw-r--r--Jellyfin.Api/Helpers/StreamingHelpers.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Jellyfin.Api/Helpers/StreamingHelpers.cs b/Jellyfin.Api/Helpers/StreamingHelpers.cs
index 782cd6568..e55420d11 100644
--- a/Jellyfin.Api/Helpers/StreamingHelpers.cs
+++ b/Jellyfin.Api/Helpers/StreamingHelpers.cs
@@ -191,6 +191,11 @@ public static class StreamingHelpers
state.OutputAudioBitrate = encodingHelper.GetAudioBitrateParam(streamingRequest.AudioBitRate, streamingRequest.AudioCodec, state.AudioStream, state.OutputAudioChannels) ?? 0;
}
+ if (outputAudioCodec.StartsWith("pcm_", StringComparison.Ordinal))
+ {
+ containerInternal = ".pcm";
+ }
+
state.OutputAudioCodec = outputAudioCodec;
state.OutputContainer = (containerInternal ?? string.Empty).TrimStart('.');
state.OutputAudioChannels = encodingHelper.GetNumAudioChannelsParam(state, state.AudioStream, state.OutputAudioCodec);