EBU now also accepts STL24 (besides STL25/STL30) - Thx Axel :)

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1114 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2012-04-11 17:48:31 +00:00
parent 11b9f74d72
commit 34388f0cb5

View File

@ -484,7 +484,8 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
{ {
byte[] buffer = File.ReadAllBytes(fileName); byte[] buffer = File.ReadAllBytes(fileName);
EbuGeneralSubtitleInformation header = ReadHeader(buffer); EbuGeneralSubtitleInformation header = ReadHeader(buffer);
if (header.DiskFormatCode.StartsWith("STL25") || if (header.DiskFormatCode.StartsWith("STL24") ||
header.DiskFormatCode.StartsWith("STL25") ||
header.DiskFormatCode.StartsWith("STL30")) header.DiskFormatCode.StartsWith("STL30"))
{ {
return Utilities.IsInteger(header.CodePageNumber); return Utilities.IsInteger(header.CodePageNumber);