allow bitrate upscaling
This commit is contained in:
parent
6415776cd1
commit
ffcfa2d858
|
@ -693,15 +693,7 @@ namespace MediaBrowser.Api.Playback
|
||||||
|
|
||||||
protected int? GetVideoBitrateParam(StreamState state)
|
protected int? GetVideoBitrateParam(StreamState state)
|
||||||
{
|
{
|
||||||
if (state.VideoRequest.VideoBitRate.HasValue)
|
return state.VideoRequest.VideoBitRate;
|
||||||
{
|
|
||||||
// Make sure we don't request a bitrate higher than the source
|
|
||||||
var currentBitrate = state.VideoStream == null ? state.VideoRequest.VideoBitRate.Value : state.VideoStream.BitRate ?? state.VideoRequest.VideoBitRate.Value;
|
|
||||||
|
|
||||||
return Math.Min(currentBitrate, state.VideoRequest.VideoBitRate.Value);
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected int? GetAudioBitrateParam(StreamState state)
|
protected int? GetAudioBitrateParam(StreamState state)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user