aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/DynamicHlsController.cs
diff options
context:
space:
mode:
authorNyanmisaka <nst799610810@gmail.com>2024-08-05 16:37:09 +0800
committerGitHub <noreply@github.com>2024-08-05 16:37:09 +0800
commit2aa9cf4007c0217a8b4868f90f9295a395637277 (patch)
treec47f46524118e9b5b1623cfe8a913001b4530865 /Jellyfin.Api/Controllers/DynamicHlsController.cs
parent00088c295445fe2710cae468e1b09f98a32e40a5 (diff)
parent7ea91dfcc4030892fff164d49969f6e85c8493fe (diff)
Merge branch 'master' into fix-hwa-video-rotation
Diffstat (limited to 'Jellyfin.Api/Controllers/DynamicHlsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/DynamicHlsController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/DynamicHlsController.cs b/Jellyfin.Api/Controllers/DynamicHlsController.cs
index 329dd2c4c..130c1192f 100644
--- a/Jellyfin.Api/Controllers/DynamicHlsController.cs
+++ b/Jellyfin.Api/Controllers/DynamicHlsController.cs
@@ -1733,7 +1733,7 @@ public class DynamicHlsController : BaseJellyfinApiController
var channels = state.OutputAudioChannels;
- var useDownMixAlgorithm = state.AudioStream.Channels is 6 && _encodingOptions.DownMixStereoAlgorithm != DownMixStereoAlgorithms.None;
+ var useDownMixAlgorithm = DownMixAlgorithmsHelper.AlgorithmFilterStrings.ContainsKey((_encodingOptions.DownMixStereoAlgorithm, DownMixAlgorithmsHelper.InferChannelLayout(state.AudioStream)));
if (channels.HasValue
&& (channels.Value != 2