mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(GAudio.TryOpen): quit on real ogg streams.
This commit is contained in:
parent
7aa279eb3a
commit
6a84d6de7d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user