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:
niksedk 2010-10-29 05:33:31 +00:00
parent 187a6049a5
commit 8a23195f27

View File

@ -67,7 +67,7 @@ namespace Nikse.SubtitleEdit.Logic.VobSub
{
string bString = Helper.GetBinaryString(buffer, tempIndex, 5);
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;
}
if (PresentationTimeStampDecodeTimeStampFlags == Helper.B00000011)