]> git.sesse.net Git - ffmpeg/commitdiff
win32: Use _fstati64() instead of plain old fstat() on Windows to support file
authorkemuri <kemuri9@gmail.com>
Thu, 3 Jun 2010 20:41:04 +0000 (20:41 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Thu, 3 Jun 2010 20:41:04 +0000 (20:41 +0000)
sizes greater than 4gb.

Patch by kemuri <kemuri9 at gmail dot com>

Originally committed as revision 23448 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/os_support.h

index e90f2c244fcdbf2c0fc81e313a135842b2937450..a3cc40a8509b22c8e475c0f0ce0f8b2197aee6c5 100644 (file)
@@ -32,6 +32,8 @@
 #if defined(__MINGW32__) && !defined(__MINGW32CE__)
 #  include <fcntl.h>
 #  define lseek(f,p,w) _lseeki64((f), (p), (w))
+#  define stat _stati64
+#  define fstat(f,s) _fstati64((f), (s))
 #endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */
 
 static inline int is_dos_path(const char *path)