Merge pull request #9738 from olanwe/fix-scalefactor

This commit is contained in:
Bond-009 2023-05-08 10:03:50 +02:00 committed by GitHub
commit 9e416409f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2148,7 +2148,7 @@ namespace MediaBrowser.Controller.MediaEncoding
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)
{