mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-31 20:24:21 -04:00
Fix scaleFactor limitation to 1 introduced by pull request #9485
This commit is contained in:
parent
bceca0ae45
commit
fbc039b14b
@ -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…
x
Reference in New Issue
Block a user