aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/DynamicHlsController.cs
diff options
context:
space:
mode:
authorgnattu <gnattu@users.noreply.github.com>2024-07-30 23:50:22 +0800
committerGitHub <noreply@github.com>2024-07-30 09:50:22 -0600
commit0a1a109b2e9503213debdc8445910cb4c93ae382 (patch)
tree580940d87a79c48ae7edec2b35cf4ce3618e2923 /Jellyfin.Api/Controllers/DynamicHlsController.cs
parentf7ab17d24da65875fa7e2b53b68caa4171832d9c (diff)
Add RFC7845 downmix algorithm (#12300)
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