Video player fix (related to #668)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1437 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -463,7 +463,8 @@ vp_GetCanvasLine (TFB_VideoDecoder* decoder, uint32 line)
|
|||||||
static uint32
|
static uint32
|
||||||
vp_GetTicks (TFB_VideoDecoder* decoder)
|
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
|
(void)decoder; // gobble up compiler warning
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user