mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Fixed overflow bug in vobsub reading :)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@109 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
187a6049a5
commit
8a23195f27
@ -67,7 +67,7 @@ namespace Nikse.SubtitleEdit.Logic.VobSub
|
|||||||
{
|
{
|
||||||
string bString = Helper.GetBinaryString(buffer, tempIndex, 5);
|
string bString = Helper.GetBinaryString(buffer, tempIndex, 5);
|
||||||
bString = bString.Substring(4, 3) + bString.Substring(8, 15) + bString.Substring(24, 15);
|
bString = bString.Substring(4, 3) + bString.Substring(8, 15) + bString.Substring(24, 15);
|
||||||
PresentationTimeStamp = Convert.ToUInt32(bString, 2);
|
PresentationTimeStamp = Convert.ToUInt64(bString, 2);
|
||||||
tempIndex += 5;
|
tempIndex += 5;
|
||||||
}
|
}
|
||||||
if (PresentationTimeStampDecodeTimeStampFlags == Helper.B00000011)
|
if (PresentationTimeStampDecodeTimeStampFlags == Helper.B00000011)
|
||||||
|
Loading…
Reference in New Issue
Block a user