[FFmpeg-devel] [PATCH v2] lavf: fix 2GB file seek limit on Android
Yu Xiaolei
dreifachstein at gmail.com
Thu Oct 9 04:49:43 CEST 2014
---
libavformat/os_support.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 1522740..0b9fd49 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -56,6 +56,13 @@
#define mkdir(a, b) _mkdir(a)
#endif
+#ifdef __ANDROID__
+# ifdef lseek
+# undef lseek
+# endif
+# define lseek(f,p,w) lseek64((f), (p), (w))
+#endif
+
static inline int is_dos_path(const char *path)
{
#if HAVE_DOS_PATHS
--
2.1.1
More information about the ffmpeg-devel
mailing list