mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
Remove redundant casts
This commit is contained in:
parent
26958162d0
commit
7d7e177265
5 changed files with 8 additions and 8 deletions
|
|
@ -2614,8 +2614,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
|
||||
if (outputWidth > maximumWidth || outputHeight > maximumHeight)
|
||||
{
|
||||
var scaleW = (double)maximumWidth / (double)outputWidth;
|
||||
var scaleH = (double)maximumHeight / (double)outputHeight;
|
||||
var scaleW = (double)maximumWidth / outputWidth;
|
||||
var scaleH = (double)maximumHeight / outputHeight;
|
||||
var scale = Math.Min(scaleW, scaleH);
|
||||
outputWidth = Math.Min(maximumWidth, (int)(outputWidth * scale));
|
||||
outputHeight = Math.Min(maximumHeight, (int)(outputHeight * scale));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue