Skip to content

Commit

Permalink
Merge pull request #10487 from thornbill/backport-9485
Browse files Browse the repository at this point in the history
Fix scaleFactor limit - Backport #9738
  • Loading branch information
crobibero committed Oct 28, 2023
2 parents ce8eddd + 3269ce5 commit 4df1003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,7 @@ private static int ScaleBitrate(int bitrate, string inputVideoCodec, string outp
var outputScaleFactor = GetVideoBitrateScaleFactor(outputVideoCodec);

// Don't scale the real bitrate lower than the requested bitrate
var scaleFactor = Math.Min(outputScaleFactor / inputScaleFactor, 1);
var scaleFactor = Math.Max(outputScaleFactor / inputScaleFactor, 1);

if (bitrate <= 500000)
{
Expand Down

0 comments on commit 4df1003

Please sign in to comment.