(Mp3Audio.TryOpen): recognize MPEG 2.5 signature.

This commit is contained in:
morkt 2015-06-28 07:38:28 +04:00
parent 02e68fcda9
commit b32ac64569

View File

@ -104,7 +104,7 @@ namespace GameRes.Formats
if (4 != file.Read (header, 0, 4))
return null;
}
if (0xff != header[0] || 0xf2 != (header[1] & 0xf6) || 0xf0 == (header[2] & 0xf0))
if (0xff != header[0] || 0xe2 != (header[1] & 0xe6) || 0xf0 == (header[2] & 0xf0))
return null;
file.Position = 0;
return new Mp3Input (file);