diff --git a/ArcFormats/Leaf/AudioG.cs b/ArcFormats/Leaf/AudioG.cs index 5dd98bd2..b4cc999d 100644 --- a/ArcFormats/Leaf/AudioG.cs +++ b/ArcFormats/Leaf/AudioG.cs @@ -48,6 +48,8 @@ namespace GameRes.Formats.Leaf var header = new byte[0x1C]; if (header.Length != file.Read (header, 0, header.Length)) return null; + if (Binary.AsciiEqual (header, "OggS") || Binary.AsciiEqual (header, "RIFF")) + return null; if (header[4] != 0 || header[5] != 2 || LittleEndian.ToInt64 (header, 6) != 0) return null; file.Position = 0;