[FFmpeg-cvslog] lavf: fix 2GB file seek limit on Android

Yu Xiaolei git at videolan.org
Thu Oct 9 13:32:24 CEST 2014


ffmpeg | branch: master | Yu Xiaolei <dreifachstein at gmail.com> | Thu Oct  9 10:49:43 2014 +0800| [d5a6f1127263dd3dfcf08d26439ce4276dfda27d] | committer: Michael Niedermayer

lavf: fix 2GB file seek limit on Android

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d5a6f1127263dd3dfcf08d26439ce4276dfda27d
---

 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



More information about the ffmpeg-cvslog mailing list