Remove casts from DUCK video decoder which cause function cast warnings

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3686 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2011-09-06 17:33:18 +00:00
parent 72e57be70d
commit 58866e1be5
+2 -1
View File
@@ -727,7 +727,8 @@ dukv_SeekTime (THIS_PTR, float time)
//TFB_DuckVideoDecoder* dukv = (TFB_DuckVideoDecoder*) This; //TFB_DuckVideoDecoder* dukv = (TFB_DuckVideoDecoder*) This;
uint32 frame = (uint32) (time * DUCK_GENERAL_FPS); uint32 frame = (uint32) (time * DUCK_GENERAL_FPS);
return (float) dukv_SeekFrame (This, frame) / DUCK_GENERAL_FPS; // Note that DUCK_GENERAL_FPS is a float constant
return dukv_SeekFrame (This, frame) / DUCK_GENERAL_FPS;
} }
static uint32 static uint32