From 952995f796a1a8de20fb9c174b2b2782bd3b2d33 Mon Sep 17 00:00:00 2001 From: gnattu Date: Thu, 23 May 2024 23:08:29 +0800 Subject: [PATCH] Ignore NullOrEmpty imageStream.AspectRatio Signed-off-by: gnattu --- MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs index ee95804428..e804efbc63 100644 --- a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs +++ b/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(':');