From 0a1a109b2e9503213debdc8445910cb4c93ae382 Mon Sep 17 00:00:00 2001 From: gnattu Date: Tue, 30 Jul 2024 23:50:22 +0800 Subject: Add RFC7845 downmix algorithm (#12300) --- Jellyfin.Api/Controllers/DynamicHlsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Jellyfin.Api/Controllers/DynamicHlsController.cs') 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 -- cgit v1.2.3