Skip to content

Commit

Permalink
Ignore NullOrEmpty imageStream.AspectRatio
Browse files Browse the repository at this point in the history
Signed-off-by: gnattu <gnattuoc@me.com>
  • Loading branch information
gnattu committed May 23, 2024
1 parent 933a285 commit 952995f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ private async Task<string> ExtractImageInternal(string inputPath, string contain
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(':');
Expand Down

0 comments on commit 952995f

Please sign in to comment.