diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-10-23 12:03:22 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-10-23 12:03:22 -0400 |
| commit | ffcfa2d85843aaa9a99131d531296b0b54cc0e34 (patch) | |
| tree | aceedd68b37983da97f50329dffe1650da9f6679 | |
| parent | 6415776cd16be6068367273367e35188b26b97db (diff) | |
allow bitrate upscaling
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index a9d6dad2a..067b47d82 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -693,15 +693,7 @@ namespace MediaBrowser.Api.Playback protected int? GetVideoBitrateParam(StreamState state) { - if (state.VideoRequest.VideoBitRate.HasValue) - { - // 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; + return state.VideoRequest.VideoBitRate; } protected int? GetAudioBitrateParam(StreamState state) |
