remove audio channel limit from transcoding conditions
This commit is contained in:
parent
6b0a59c7db
commit
7debfaa4bd
|
@ -886,12 +886,9 @@ namespace MediaBrowser.Api.Playback
|
||||||
resultChannels = Math.Min(request.MaxAudioChannels.Value, channelLimit);
|
resultChannels = Math.Min(request.MaxAudioChannels.Value, channelLimit);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resultChannels.HasValue && !string.Equals(codec, "copy", StringComparison.OrdinalIgnoreCase))
|
if (request.TranscodingMaxAudioChannels.HasValue && !string.Equals(codec, "copy", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
if (request.TranscodingMaxAudioChannels.HasValue)
|
resultChannels = Math.Min(request.TranscodingMaxAudioChannels.Value, resultChannels ?? inputChannels ?? request.TranscodingMaxAudioChannels.Value);
|
||||||
{
|
|
||||||
resultChannels = Math.Min(request.TranscodingMaxAudioChannels.Value, resultChannels.Value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return resultChannels ?? request.AudioChannels;
|
return resultChannels ?? request.AudioChannels;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user