not apply to progressive playback

This commit is contained in:
Nyanmisaka 2020-12-26 02:28:38 +08:00 committed by GitHub
parent ae1187042a
commit 470f40442c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1725,6 +1725,7 @@ namespace MediaBrowser.Controller.MediaEncoding
// Avoid transcoding to audio channels other than 1ch, 2ch, 6ch (5.1 layout) and 8ch (7.1 layout).
// https://developer.apple.com/documentation/http_live_streaming/hls_authoring_specification_for_apple_devices
if (isTranscodingAudio
&& state.TranscodingType != TranscodingJobType.Progressive
&& resultChannels.HasValue
&& (resultChannels.Value > 2 && resultChannels.Value < 6 || resultChannels.Value == 7))
{