[xiph-commits] r8809 - trunk/oggdsf/src/lib/helper/libTemporalURI

illiminable at motherfish-iii.xiph.org illiminable at motherfish-iii.xiph.org
Mon Jan 31 01:54:27 PST 2005


Author: illiminable
Date: 2005-01-31 01:54:24 -0800 (Mon, 31 Jan 2005)
New Revision: 8809

Modified:
   trunk/oggdsf/src/lib/helper/libTemporalURI/C_TimeStamp.cpp
Log:
* Fix overflow in timestamp class.

Modified: trunk/oggdsf/src/lib/helper/libTemporalURI/C_TimeStamp.cpp
===================================================================
--- trunk/oggdsf/src/lib/helper/libTemporalURI/C_TimeStamp.cpp	2005-01-29 19:40:26 UTC (rev 8808)
+++ trunk/oggdsf/src/lib/helper/libTemporalURI/C_TimeStamp.cpp	2005-01-31 09:54:24 UTC (rev 8809)
@@ -229,7 +229,7 @@
 		case TS_NPT_SECS:
 			return (mSecs * 10000000) + (mHuns);
 		case TS_NPT_FULL:
-			return (mFPT.hours * 3600 * 10000000) + (mFPT.minutes * 60 * 10000000) + (mFPT.seconds * 10000000) + (mFPT.partials);
+			return ((LOOG_INT64)mFPT.hours * (LOOG_INT64)3600 * (LOOG_INT64)10000000) + ((LOOG_INT64)mFPT.minutes * (LOOG_INT64)60 * (LOOG_INT64)10000000) + ((LOOG_INT64)mFPT.seconds * (LOOG_INT64)10000000) + ((LOOG_INT64)mFPT.partials);
 		default:
 			return  -1;
 



More information about the commits mailing list