Fix PAC reading issue - thx Milenko :)

This commit is contained in:
Nikolaj Olsson 2019-09-27 15:59:18 +02:00
parent 17bddc3201
commit 236834a123
2 changed files with 4 additions and 2 deletions

View File

@ -41,6 +41,8 @@
* Fix remembering export buttom margin - thx Michael * Fix remembering export buttom margin - thx Michael
* Skip small/short images when importing vobsub from mkv - thx Maitch * Skip small/short images when importing vobsub from mkv - thx Maitch
* Fix for reading mkv on Linux - thx JGoutin * Fix for reading mkv on Linux - thx JGoutin
* Exclude html/ass tags in line lengts (Statistics) - thx AlexandreMT
* Fix PAC reading issue - thx Milenko
3.5.10 (18th August 2019) 3.5.10 (18th August 2019)

View File

@ -985,12 +985,12 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
var p = new Paragraph(); var p = new Paragraph();
int timeStartIndex = feIndex - 15; int timeStartIndex = feIndex - 15;
if (buffer[timeStartIndex] == 0x60) if (buffer[timeStartIndex] == 0x60 || buffer[timeStartIndex] == 0x61)
{ {
p.StartTime = GetTimeCode(timeStartIndex + 1, buffer); p.StartTime = GetTimeCode(timeStartIndex + 1, buffer);
p.EndTime = GetTimeCode(timeStartIndex + 5, buffer); p.EndTime = GetTimeCode(timeStartIndex + 5, buffer);
} }
else if (buffer[timeStartIndex + 3] == 0x60) else if (buffer[timeStartIndex + 3] == 0x60 || buffer[timeStartIndex + 3] == 0x61)
{ {
timeStartIndex += 3; timeStartIndex += 3;
p.StartTime = GetTimeCode(timeStartIndex + 1, buffer); p.StartTime = GetTimeCode(timeStartIndex + 1, buffer);