From 83ebaec6bebf4cf919dfc32337ca3b5dbe6a7acb Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 15 Nov 2015 14:06:34 +0400 Subject: [PATCH] (PcmAudio): refined signature check. --- ArcFormats/AnimeGameSystem/AudioPCM.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/AnimeGameSystem/AudioPCM.cs b/ArcFormats/AnimeGameSystem/AudioPCM.cs index 4d716016..33dd62d2 100644 --- a/ArcFormats/AnimeGameSystem/AudioPCM.cs +++ b/ArcFormats/AnimeGameSystem/AudioPCM.cs @@ -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);