mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
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:
parent
e81db5c291
commit
30af04ca37
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user