From: <av...@us...> - 2011-09-06 17:33:27
|
Revision: 3686 http://sc2.svn.sourceforge.net/sc2/?rev=3686&view=rev Author: avolkov Date: 2011-09-06 17:33:18 +0000 (Tue, 06 Sep 2011) Log Message: ----------- Remove casts from DUCK video decoder which cause function cast warnings Modified Paths: -------------- trunk/sc2/src/libs/video/dukvid.c Modified: trunk/sc2/src/libs/video/dukvid.c =================================================================== --- trunk/sc2/src/libs/video/dukvid.c 2011-09-06 17:27:37 UTC (rev 3685) +++ trunk/sc2/src/libs/video/dukvid.c 2011-09-06 17:33:18 UTC (rev 3686) @@ -727,7 +727,8 @@ //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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |