From db30708f7eb768ad8bfac17429ac264c6af09f1c Mon Sep 17 00:00:00 2001 From: avolkov Date: Fri, 7 Jan 2005 23:03:58 +0000 Subject: [PATCH] Video player fix (related to #668) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1437 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/video/vidplayer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/video/vidplayer.c b/sc2/src/sc2code/libs/video/vidplayer.c index fe441163d..2d56042cd 100644 --- a/sc2/src/sc2code/libs/video/vidplayer.c +++ b/sc2/src/sc2code/libs/video/vidplayer.c @@ -463,7 +463,8 @@ vp_GetCanvasLine (TFB_VideoDecoder* decoder, uint32 line) static uint32 vp_GetTicks (TFB_VideoDecoder* decoder) { - return GetTimeCounter () * 1000 / ONE_SECOND; + uint32 ctr = GetTimeCounter (); + return (ctr / ONE_SECOND) * 1000 + ((ctr % ONE_SECOND) * 1000) / ONE_SECOND; (void)decoder; // gobble up compiler warning }