From d5a6f1127263dd3dfcf08d26439ce4276dfda27d Mon Sep 17 00:00:00 2001 From: Yu Xiaolei Date: Thu, 9 Oct 2014 10:49:43 +0800 Subject: lavf: fix 2GB file seek limit on Android Signed-off-by: Michael Niedermayer --- libavformat/os_support.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavformat') 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 -- cgit v1.2.3