fix aac directstreaming
This commit is contained in:
parent
26078e4df9
commit
d34be6faf4
|
@ -2675,9 +2675,10 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
state.MediaSource = mediaSource;
|
||||
|
||||
var request = state.BaseRequest;
|
||||
if (!string.IsNullOrWhiteSpace(request.AudioCodec))
|
||||
var supportedAudioCodecs = state.SupportedAudioCodecs;
|
||||
if (request != null && supportedAudioCodecs != null && supportedAudioCodecs.Length > 0)
|
||||
{
|
||||
var supportedAudioCodecsList = request.AudioCodec.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
var supportedAudioCodecsList = supportedAudioCodecs.ToList();
|
||||
|
||||
ShiftAudioCodecsIfNeeded(supportedAudioCodecsList, state.AudioStream);
|
||||
|
||||
|
|
|
@ -287,6 +287,11 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
return BaseRequest.AudioChannels;
|
||||
}
|
||||
|
||||
if (BaseRequest.TranscodingMaxAudioChannels.HasValue)
|
||||
{
|
||||
return BaseRequest.TranscodingMaxAudioChannels;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(codec))
|
||||
{
|
||||
var value = BaseRequest.GetOption(codec, "audiochannels");
|
||||
|
|
Loading…
Reference in New Issue
Block a user