(OGG): another tag for ogg streams embedded into WAV files.

This commit is contained in:
morkt 2018-01-22 15:51:23 +04:00
parent eaa3ce4702
commit e8f87af7f0

View File

@ -147,7 +147,7 @@ namespace GameRes.Formats
uint fmt_size = header.ToUInt32 (0x10); uint fmt_size = header.ToUInt32 (0x10);
long fmt_pos = file.Position; long fmt_pos = file.Position;
ushort format = file.ReadUInt16(); ushort format = file.ReadUInt16();
if (format != 0x6770 && format != 0x6771) if (format != 0x676F && format != 0x6770 && format != 0x6771)
return null; return null;
// interpret WAVE 'data' section as Ogg stream // interpret WAVE 'data' section as Ogg stream
file.Position = fmt_pos + ((fmt_size + 1) & ~1); file.Position = fmt_pos + ((fmt_size + 1) & ~1);