Revert using Math.Clamp
This commit is contained in:
parent
e6df698df1
commit
d29c7c1d9e
|
@ -909,8 +909,9 @@ namespace MediaBrowser.Model.Dlna
|
|||
}
|
||||
|
||||
// Make sure the video bitrate is lower than bitrate settings but at least 64k
|
||||
// Don't use Math.Clamp as availableBitrateForVideo can be lower then 64k.
|
||||
var currentValue = playlistItem.VideoBitrate ?? availableBitrateForVideo;
|
||||
playlistItem.VideoBitrate = Math.Clamp(currentValue, 64_000, availableBitrateForVideo);
|
||||
playlistItem.VideoBitrate = Math.Max(Math.Min(availableBitrateForVideo, currentValue), 64_000);
|
||||
}
|
||||
|
||||
_logger.LogInformation(
|
||||
|
|
Loading…
Reference in New Issue
Block a user