瀏覽代碼

also avoid 7ch transcoding

nyanmisaka 4 年之前
父節點
當前提交
ae1187042a
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

+ 1 - 2
MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

@@ -1726,8 +1726,7 @@ namespace MediaBrowser.Controller.MediaEncoding
             // https://developer.apple.com/documentation/http_live_streaming/hls_authoring_specification_for_apple_devices
             // https://developer.apple.com/documentation/http_live_streaming/hls_authoring_specification_for_apple_devices
             if (isTranscodingAudio
             if (isTranscodingAudio
                 && resultChannels.HasValue
                 && resultChannels.HasValue
-                && resultChannels.Value > 2
-                && resultChannels.Value < 6)
+                && (resultChannels.Value > 2 && resultChannels.Value < 6 || resultChannels.Value == 7))
             {
             {
                 resultChannels = 2;
                 resultChannels = 2;
             }
             }