mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Improved reading of pac files - thx Massimo :)
This commit is contained in:
parent
437e2c8a70
commit
87182fe8a8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user