浏览代码

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;
                 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
                 // For hardware trickplay encoders, we need to re-calculate the size because they used fixed scale dimensions
                 var darParts = imageStream.AspectRatio.Split(':');
                 var darParts = imageStream.AspectRatio.Split(':');