Ensure device can decode AAC 5.1 before transcoding to that

This commit is contained in:
Neil Burrows 2020-05-02 09:45:06 +01:00
parent 99b50d99c4
commit 31ac79c035

View File

@ -109,7 +109,7 @@ function getTranscodeParameters(meta as object)
' If 5.1 Audio Output is connected then allow transcoding to 5.1
di = CreateObject("roDeviceInfo")
if di.GetAudioOutputChannel() = "5.1 surround" then
if di.GetAudioOutputChannel() = "5.1 surround" and di.CanDecodeAudio({ Codec: "aac", ChCnt: 6 }).result then
audioChannels = 6
end if
end if