mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix really high audio encoding bitrate
This commit is contained in:
parent
55bbc051c2
commit
115b4b2c1b
@ -1453,7 +1453,8 @@ namespace MediaBrowser.Api.Playback
|
|||||||
// Make sure we don't request a bitrate higher than the source
|
// Make sure we don't request a bitrate higher than the source
|
||||||
var currentBitrate = audioStream == null ? request.AudioBitRate.Value : audioStream.BitRate ?? request.AudioBitRate.Value;
|
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);
|
//return Math.Min(currentBitrate, request.AudioBitRate.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user