mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #10487 from thornbill/backport-9485
Fix scaleFactor limit - Backport #9738
This commit is contained in:
commit
4df1003029
@ -2070,7 +2070,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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user