summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorYu Xiaolei <dreifachstein@gmail.com>2014-10-09 10:49:43 +0800
committerMichael Niedermayer <michaelni@gmx.at>2014-10-09 13:08:33 +0200
commitd5a6f1127263dd3dfcf08d26439ce4276dfda27d (patch)
treeb5763f12f7b426d9e21f8f4a79adc3c96933fb48 /libavformat
parent7b973e734111caccc737fcc6d1ed5a6a111c8831 (diff)
lavf: fix 2GB file seek limit on Android
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/os_support.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 1522740765..0b9fd49323 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