(PcmAudio): refined signature check.

This commit is contained in:
morkt 2015-11-15 14:06:34 +04:00
parent 3ad0b80d0f
commit 83ebaec6be

View File

@ -43,7 +43,7 @@ namespace GameRes.Formats.Ags
public override SoundInput TryOpen (Stream file)
{
uint signature = FormatCatalog.ReadSignature (file) & 0xFFFFFF;
uint signature = FormatCatalog.ReadSignature (file) & 0xF0FFFFFF;
if (0x564157 != signature) // 'WAV'
return null;
return new PcmInput (file);