lavf: include libavutil/time.h instead of redeclaring av_gettime()
authorMans Rullgard <mans@mansr.com>
Thu, 21 Jun 2012 15:36:15 +0000 (16:36 +0100)
committerMans Rullgard <mans@mansr.com>
Thu, 21 Jun 2012 21:53:05 +0000 (22:53 +0100)
This avoids some warnings about redundant declarations.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/avformat.h

index 1c1aad6..e292206 100644 (file)
 #include "avio.h"
 #include "libavformat/version.h"
 
+#if FF_API_AV_GETTIME
+#include "libavutil/time.h"
+#endif
+
 struct AVFormatContext;
 
 
@@ -1635,10 +1639,6 @@ void av_dump_format(AVFormatContext *ic,
                     const char *url,
                     int is_output);
 
-#if FF_API_AV_GETTIME
-int64_t av_gettime(void);
-#endif
-
 /**
  * Return in 'buf' the path with '%d' replaced by a number.
  *