Преглед изворни кода

Ignore NullOrEmpty imageStream.AspectRatio

Signed-off-by: gnattu <gnattuoc@me.com>
gnattu пре 1 година
родитељ
комит
952995f796
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs

+ 1 - 1
MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs

@@ -824,7 +824,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
                 options.EnableTonemapping = false;
             }
 
-            if (imageStream.Width is not null && imageStream.Height is not null)
+            if (imageStream.Width is not null && imageStream.Height is not null && !string.IsNullOrEmpty(imageStream.AspectRatio))
             {
                 // For hardware trickplay encoders, we need to re-calculate the size because they used fixed scale dimensions
                 var darParts = imageStream.AspectRatio.Split(':');