[FFmpeg-devel] [PATCH] Use hi-res timer under win32 builds

Fred Rothganger fred
Mon Oct 15 06:58:29 CEST 2007


I am compiling ffmpeg under cygwin with -mno-cygwin, and then linking 
the resulting static libs under MSVC 2005 edition.  There are three 
symbols that remain undefined at link time:

_snprintf
_gettimeofday
_round

This patch addresses _gettimeofday.  It is supplying a microsecond 
resolution time value for general use.  Under cygwin, the resolution of 
_gettimeofday is much more coarse, on the order of 10ms.  Also, as noted 
above, this breaks linkage with the MSVC runtime.  Instead, we can use a 
high resolution timer calls in the win32 api.

-- Fred
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: utils.c.diff2
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071014/80e57308/attachment.asc>



More information about the ffmpeg-devel mailing list