From 3ea4174d12cdb14bc7cbe693147d42bc45aaabb0 Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Sat, 12 Mar 2022 07:17:59 -0700 Subject: [PATCH] Fix flipped Clamp args --- MediaBrowser.Model/Dlna/StreamBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Model/Dlna/StreamBuilder.cs b/MediaBrowser.Model/Dlna/StreamBuilder.cs index 057df9c38..e72cd632d 100644 --- a/MediaBrowser.Model/Dlna/StreamBuilder.cs +++ b/MediaBrowser.Model/Dlna/StreamBuilder.cs @@ -910,7 +910,7 @@ namespace MediaBrowser.Model.Dlna // Make sure the video bitrate is lower than bitrate settings but at least 64k var currentValue = playlistItem.VideoBitrate ?? availableBitrateForVideo; - playlistItem.VideoBitrate = Math.Clamp(currentValue, availableBitrateForVideo, 64_000); + playlistItem.VideoBitrate = Math.Clamp(currentValue, 64_000, availableBitrateForVideo); } _logger.LogInformation(