lavf: fix 2GB file seek limit on Android
authorYu Xiaolei <dreifachstein@gmail.com>
Thu, 9 Oct 2014 02:49:43 +0000 (10:49 +0800)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 9 Oct 2014 11:08:33 +0000 (13:08 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/os_support.h

index 1522740..0b9fd49 100644 (file)
 #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