mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Don't decode animated images
This commit is contained in:
parent
407cf5d0bf
commit
86b77de522
@ -262,6 +262,11 @@ public class SkiaEncoder : IImageEncoder
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (codec.FrameCount != 0)
|
||||||
|
{
|
||||||
|
throw new ArgumentException("Cannot decode images with multiple frames");
|
||||||
|
}
|
||||||
|
|
||||||
// create the bitmap
|
// create the bitmap
|
||||||
var bitmap = new SKBitmap(codec.Info.Width, codec.Info.Height, !requiresTransparencyHack);
|
var bitmap = new SKBitmap(codec.Info.Width, codec.Info.Height, !requiresTransparencyHack);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user