also avoid 7ch transcoding

This commit is contained in:
nyanmisaka 2020-12-24 20:06:55 +08:00
parent bc6ec08322
commit ae1187042a

View File

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