Merge pull request #9738 from olanwe/fix-scalefactor

pull/9461/head
Bond-009 2 years ago committed by GitHub
commit 9e416409f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2148,7 +2148,7 @@ namespace MediaBrowser.Controller.MediaEncoding
var outputScaleFactor = GetVideoBitrateScaleFactor(outputVideoCodec); var outputScaleFactor = GetVideoBitrateScaleFactor(outputVideoCodec);
// Don't scale the real bitrate lower than the requested bitrate // 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) if (bitrate <= 500000)
{ {

Loading…
Cancel
Save