Improved reading of pac files - thx Massimo :)

This commit is contained in:
niksedk 2014-09-05 23:50:45 +02:00
parent 437e2c8a70
commit 87182fe8a8

View File

@ -1027,6 +1027,8 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
return null;
}
int textLength = buffer[timeStartIndex + 9] + buffer[timeStartIndex + 10] * 256;
if (textLength > 500)
return null; // probably not correct index
int maxIndex = timeStartIndex + 10 + textLength;
if (_codePage == -1)