Fix flipped Clamp args

This commit is contained in:
Cody Robibero 2022-03-12 07:17:59 -07:00
parent da41cd365c
commit 3ea4174d12

View File

@ -910,7 +910,7 @@ namespace MediaBrowser.Model.Dlna
// Make sure the video bitrate is lower than bitrate settings but at least 64k // Make sure the video bitrate is lower than bitrate settings but at least 64k
var currentValue = playlistItem.VideoBitrate ?? availableBitrateForVideo; var currentValue = playlistItem.VideoBitrate ?? availableBitrateForVideo;
playlistItem.VideoBitrate = Math.Clamp(currentValue, availableBitrateForVideo, 64_000); playlistItem.VideoBitrate = Math.Clamp(currentValue, 64_000, availableBitrateForVideo);
} }
_logger.LogInformation( _logger.LogInformation(