diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-01-21 20:18:52 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-01-22 23:49:51 +0100 |
| commit | 722120af74fadc1dfb43f1535797464a0ba63ba9 (patch) | |
| tree | eb3853accbefd0be6a46ece93876cfa0ebe33784 /Emby.Drawing | |
| parent | edcfd8b565f632088c8b1f826db8e2fbecf9790d (diff) | |
Remove conditions that are always true/false
Diffstat (limited to 'Emby.Drawing')
| -rw-r--r-- | Emby.Drawing/SkiaEncoder.cs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Emby.Drawing/SkiaEncoder.cs b/Emby.Drawing/SkiaEncoder.cs index 87e0eca21..9883b3cca 100644 --- a/Emby.Drawing/SkiaEncoder.cs +++ b/Emby.Drawing/SkiaEncoder.cs @@ -270,17 +270,10 @@ namespace Emby.Drawing // create the bitmap var bitmap = new SKBitmap(codec.Info.Width, codec.Info.Height, !requiresTransparencyHack); - if (bitmap != null) - { - // decode - codec.GetPixels(bitmap.Info, bitmap.GetPixels()); + // decode + codec.GetPixels(bitmap.Info, bitmap.GetPixels()); - origin = codec.EncodedOrigin; - } - else - { - origin = GetSKEncodedOrigin(orientation); - } + origin = codec.EncodedOrigin; return bitmap; } |
