Minor fix for reading format pac

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@944 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2012-01-22 10:16:15 +00:00
parent e81db5c291
commit 30af04ca37

View File

@ -865,7 +865,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
if (_codePage == -1)
GetCodePage(buffer, index, endDelimiter);
StringBuilder sb = new StringBuilder();
var sb = new StringBuilder();
index = FEIndex + 3;
while (index < buffer.Length && buffer[index] != endDelimiter)
{
@ -907,12 +907,16 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
p.StartTime = GetTimeCode(timeStartIndex + 1, buffer);
p.EndTime = GetTimeCode(timeStartIndex + 5, buffer);
}
else if (buffer[timeStartIndex+3] == 0x60)
else if (buffer[timeStartIndex + 3] == 0x60)
{
timeStartIndex += 3;
p.StartTime = GetTimeCode(timeStartIndex + 1, buffer);
p.EndTime = GetTimeCode(timeStartIndex + 5, buffer);
}
else
{
return null;
}
return p;
}