mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-21 12:19:47 +00:00
Fix SA 1116 warnings
This commit is contained in:
parent
6f9beef732
commit
ec91d3893d
19 changed files with 96 additions and 48 deletions
|
|
@ -342,7 +342,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
{
|
||||
var size = new ImageDimensions(VideoStream.Width.Value, VideoStream.Height.Value);
|
||||
|
||||
var newSize = DrawingUtils.Resize(size,
|
||||
var newSize = DrawingUtils.Resize(
|
||||
size,
|
||||
BaseRequest.Width ?? 0,
|
||||
BaseRequest.Height ?? 0,
|
||||
BaseRequest.MaxWidth ?? 0,
|
||||
|
|
@ -368,7 +369,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
{
|
||||
var size = new ImageDimensions(VideoStream.Width.Value, VideoStream.Height.Value);
|
||||
|
||||
var newSize = DrawingUtils.Resize(size,
|
||||
var newSize = DrawingUtils.Resize(
|
||||
size,
|
||||
BaseRequest.Width ?? 0,
|
||||
BaseRequest.Height ?? 0,
|
||||
BaseRequest.MaxWidth ?? 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue