From 82e4ac2c97a1ed1e89f54b33dba502d5baaa61ab Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Mon, 16 Jul 2007 20:28:43 +0000 Subject: [PATCH] Move av_gettime() back to lavf/utils.c Originally committed as revision 9706 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/os_support.c | 12 ------------ libavformat/utils.c | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/libavformat/os_support.c b/libavformat/os_support.c index 23fc922e84..5a8bb9ecd1 100644 --- a/libavformat/os_support.c +++ b/libavformat/os_support.c @@ -25,8 +25,6 @@ #include #include #endif -#include -#include #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" diff --git a/libavformat/utils.c b/libavformat/utils.c index 401e828790..5b054f6570 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -23,6 +23,8 @@ #include "opt.h" #include "avstring.h" #include "riff.h" +#include +#include #undef NDEBUG #include @@ -2498,6 +2500,16 @@ int parse_frame_rate(int *frame_rate_num, int *frame_rate_den, const char *arg) 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; -- 2.11.0