The Free Software Media System - Server Backend & API
Don't decode animated images
Cody Robibero86b77de5229c
diff --git a/src/Jellyfin.Drawing.Skia/SkiaEncoder.cs b/src/Jellyfin.Drawing.Skia/SkiaEncoder.csindex a407194992..92299dd063 100644--- a/src/Jellyfin.Drawing.Skia/SkiaEncoder.cs+++ b/src/Jellyfin.Drawing.Skia/SkiaEncoder.cs@@ -262,6 +262,11 @@ public class SkiaEncoder : IImageEncoderreturn null;}+ if (codec.FrameCount != 0)+ {+ throw new ArgumentException("Cannot decode images with multiple frames");+ }+// create the bitmapvar bitmap = new SKBitmap(codec.Info.Width, codec.Info.Height, !requiresTransparencyHack);