[Ffmpeg-cvslog] CVS: ffmpeg/libavformat os_support.c, 1.6, 1.7 utils.c, 1.173, 1.174
Diego Biurrun CVS
diego
Sun Jan 22 19:34:19 CET 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv1739/libavformat
Modified Files:
os_support.c utils.c
Log Message:
WinCE cross-compilation support
patch by Gildas Bazin < gbazin **@** altern **.** org >
Index: os_support.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/os_support.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- os_support.c 12 Jan 2006 22:43:25 -0000 1.6
+++ os_support.c 22 Jan 2006 18:34:16 -0000 1.7
@@ -18,7 +18,7 @@
*/
#include "config.h"
#include "avformat.h"
-#ifdef CONFIG_WIN32
+#if defined(CONFIG_WIN32) && !defined(CONFIG_WINCE)
#include <sys/types.h>
#include <sys/timeb.h>
#elif defined(CONFIG_OS2)
@@ -36,7 +36,9 @@
*/
int64_t av_gettime(void)
{
-#ifdef CONFIG_WIN32
+#if defined(CONFIG_WINCE)
+ return timeGetTime() * int64_t_C(1000);
+#elif defined(CONFIG_WIN32)
struct timeb tb;
_ftime(&tb);
return ((int64_t)tb.time * int64_t_C(1000) + (int64_t)tb.millitm) * int64_t_C(1000);
@@ -47,6 +49,7 @@
#endif
}
+#if !defined(CONFIG_WINCE)
#if !defined(HAVE_LOCALTIME_R)
struct tm *localtime_r(const time_t *t, struct tm *tp)
{
@@ -59,3 +62,4 @@
return tp;
}
#endif /* !defined(HAVE_LOCALTIME_R) */
+#endif /* !defined(CONFIG_WINCE) */
Index: utils.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/utils.c,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -d -r1.173 -r1.174
--- utils.c 12 Jan 2006 22:43:25 -0000 1.173
+++ utils.c 22 Jan 2006 18:34:16 -0000 1.174
@@ -2739,6 +2739,7 @@
* S+[.m...]
* @endcode
*/
+#ifndef CONFIG_WINCE
int64_t parse_date(const char *datestr, int duration)
{
const char *p;
@@ -2846,6 +2847,7 @@
}
return negative ? -t : t;
}
+#endif /* CONFIG_WINCE */
/**
* Attempts to find a specific tag in a URL.
More information about the ffmpeg-cvslog
mailing list