Fix stream copy

This commit is contained in:
Crsky
2025-09-28 01:03:47 +08:00
parent 9fd59c64e0
commit 2612d213af

View File

@@ -151,6 +151,7 @@ namespace GameRes.Formats.Cyberworks
BitmapSource frame;
using (var membuf = new MemoryStream (png_size+4))
{
input.CopyTo (membuf);
var decoder = new PngBitmapDecoder (new StreamRegion (membuf, membuf.Length-png_size), BitmapCreateOptions.None,
BitmapCacheOption.OnLoad);
frame = decoder.Frames[0];