From 58866e1be50ab0966ebc0cfd36177909df4aeddc Mon Sep 17 00:00:00 2001 From: avolkov Date: Tue, 6 Sep 2011 17:33:18 +0000 Subject: [PATCH] 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 --- sc2/src/libs/video/dukvid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc2/src/libs/video/dukvid.c b/sc2/src/libs/video/dukvid.c index 7d727d0c8..d9cb8fa2c 100644 --- a/sc2/src/libs/video/dukvid.c +++ b/sc2/src/libs/video/dukvid.c @@ -727,7 +727,8 @@ dukv_SeekTime (THIS_PTR, float time) //TFB_DuckVideoDecoder* dukv = (TFB_DuckVideoDecoder*) This; 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