Browse Source

fix really high audio encoding bitrate

Luke Pulverenti 8 years ago
parent
commit
115b4b2c1b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      MediaBrowser.Api/Playback/BaseStreamingService.cs

+ 2 - 1
MediaBrowser.Api/Playback/BaseStreamingService.cs

@@ -1453,7 +1453,8 @@ namespace MediaBrowser.Api.Playback
                 // Make sure we don't request a bitrate higher than the source
                 var currentBitrate = audioStream == null ? request.AudioBitRate.Value : audioStream.BitRate ?? request.AudioBitRate.Value;
 
-                return request.AudioBitRate.Value;
+                // Don't encode any higher than this
+                return Math.Min(384000, request.AudioBitRate.Value);
                 //return Math.Min(currentBitrate, request.AudioBitRate.Value);
             }