mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07:00
Merge pull request #11109 from crobibero/animated-webp
Don't decode animated images
This commit is contained in:
commit
9818456d9e
@ -263,6 +263,11 @@ public class SkiaEncoder : IImageEncoder
|
||||
return null;
|
||||
}
|
||||
|
||||
if (codec.FrameCount != 0)
|
||||
{
|
||||
throw new ArgumentException("Cannot decode images with multiple frames");
|
||||
}
|
||||
|
||||
// create the bitmap
|
||||
var bitmap = new SKBitmap(codec.Info.Width, codec.Info.Height, !requiresTransparencyHack);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user