[FFmpeg-cvslog] r9706 - in trunk/libavformat: os_support.c utils.c

ramiro subversion
Mon Jul 16 22:28:43 CEST 2007


Author: ramiro
Date: Mon Jul 16 22:28:43 2007
New Revision: 9706

Log:
Move av_gettime() back to lavf/utils.c

Modified:
   trunk/libavformat/os_support.c
   trunk/libavformat/utils.c

Modified: trunk/libavformat/os_support.c
==============================================================================
--- trunk/libavformat/os_support.c	(original)
+++ trunk/libavformat/os_support.c	Mon Jul 16 22:28:43 2007
@@ -25,8 +25,6 @@
 #include <unistd.h>
 #include <fcntl.h>
 #endif
-#include <sys/time.h>
-#include <time.h>
 
 #ifndef HAVE_SYS_POLL_H
 #if defined(__MINGW32__)
@@ -36,16 +34,6 @@
 #endif
 #endif
 
-/**
- * gets the current time in micro seconds.
- */
-int64_t av_gettime(void)
-{
-    struct timeval tv;
-    gettimeofday(&tv,NULL);
-    return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
-}
-
 #ifdef CONFIG_NETWORK
 #include "network.h"
 

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Mon Jul 16 22:28:43 2007
@@ -23,6 +23,8 @@
 #include "opt.h"
 #include "avstring.h"
 #include "riff.h"
+#include <sys/time.h>
+#include <time.h>
 
 #undef NDEBUG
 #include <assert.h>
@@ -2498,6 +2500,16 @@ int parse_frame_rate(int *frame_rate_num
     return ret;
 }
 
+/**
+ * gets the current time in micro seconds.
+ */
+int64_t av_gettime(void)
+{
+    struct timeval tv;
+    gettimeofday(&tv,NULL);
+    return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
+}
+
 int64_t parse_date(const char *datestr, int duration)
 {
     const char *p;




More information about the ffmpeg-cvslog mailing list