mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Ignore NullOrEmpty imageStream.AspectRatio
Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
933a285bf5
commit
952995f796
@ -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(':');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user