Suggestions from review
This commit is contained in:
parent
dbea7cac67
commit
da41cd365c
|
@ -909,9 +909,8 @@ namespace MediaBrowser.Model.Dlna
|
|||
}
|
||||
|
||||
// Make sure the video bitrate is lower than bitrate settings but at least 64k
|
||||
long currentValue = playlistItem.VideoBitrate ?? availableBitrateForVideo;
|
||||
var longBitrate = Math.Max(Math.Min(availableBitrateForVideo, currentValue), 64000);
|
||||
playlistItem.VideoBitrate = longBitrate >= int.MaxValue ? int.MaxValue : Convert.ToInt32(longBitrate);
|
||||
var currentValue = playlistItem.VideoBitrate ?? availableBitrateForVideo;
|
||||
playlistItem.VideoBitrate = Math.Clamp(currentValue, availableBitrateForVideo, 64_000);
|
||||
}
|
||||
|
||||
_logger.LogInformation(
|
||||
|
|
Loading…
Reference in New Issue
Block a user