aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-07-13 16:05:36 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-07-13 16:05:36 +0000
commit7829950cf26af4605f2acff0f076f4c8866f6e57 (patch)
treead36e3cb5b29eb2290e10edd21f9d113567da4e9 /ffmpeg.c
parent66be5b4536f9edebbbfe8146d44767e4f93d15e4 (diff)
downloadffmpeg-7829950cf26af4605f2acff0f076f4c8866f6e57.tar.gz
Collapse getutime into one declaration
Originally committed as revision 9628 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 795ca4c3b9..3539ae0bbf 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3105,12 +3105,6 @@ static void opt_pass(const char *pass_str)
do_pass = pass;
}
-#if defined(__MINGW32__)
-static int64_t getutime(void)
-{
- return av_gettime();
-}
-#else
static int64_t getutime(void)
{
#ifdef HAVE_GETRUSAGE
@@ -3118,9 +3112,10 @@ static int64_t getutime(void)
getrusage(RUSAGE_SELF, &rusage);
return (rusage.ru_utime.tv_sec * 1000000LL) + rusage.ru_utime.tv_usec;
+#elif defined(__MINGW32__)
+ return av_gettime();
#endif
}
-#endif
#if defined(CONFIG_FFM_DEMUXER) || defined(CONFIG_FFM_MUXER)
extern int ffm_nopts;