(WAV): another OGG format tag.

This commit is contained in:
morkt 2018-04-01 08:07:43 +04:00
parent c38c84a422
commit 927d335a61
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -117,7 +117,7 @@ namespace GameRes
if (!header.AsciiEqual (8, "WAVE"))
return null;
ushort tag = header.ToUInt16 (0x14);
if (0xFFFF == tag || 0x676F == tag || 0x6770 == tag)
if (0xFFFF == tag || 0x676F == tag || 0x6770 == tag || 0x674F == tag)
return null;
file.Position = 0;
SoundInput sound = new WaveInput (file.AsStream);