(WEBP): fixed alpha decoder.

This commit is contained in:
morkt
2016-11-13 15:48:09 +04:00
parent b9480255af
commit 1797f5151f
2 changed files with 11 additions and 13 deletions

View File

@@ -64,11 +64,9 @@ namespace GameRes.Formats.Google
{
if (0x46464952 != stream.Signature) // 'RIFF'
return null;
if (!stream.ReadHeader (12).AsciiEqual (8, "WEBP"))
return null;
var header = new byte[0x10];
if (8 != stream.Read (header, 0, 8))
return null;
if (!Binary.AsciiEqual (header, 4, "WEBP"))
return null;
bool found_vp8x = false;
var info = new WebPMetaData();
int chunk_size;