[FFmpeg-cvslog] qt-faststart: Use other seek/tell functions on MSVC than on mingw

Martin Storsjö git at videolan.org
Wed Aug 29 18:09:26 CEST 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Aug 28 22:40:27 2012 +0300| [dd4169ab924f00391711a21dd3c6c1f90d2795e0] | committer: Martin Storsjö

qt-faststart: Use other seek/tell functions on MSVC than on mingw

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 tools/qt-faststart.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c
index 8d2196c..f33d6fa 100644
--- a/tools/qt-faststart.c
+++ b/tools/qt-faststart.c
@@ -32,6 +32,9 @@
 #ifdef __MINGW32__
 #define fseeko(x, y, z) fseeko64(x, y, z)
 #define ftello(x)       ftello64(x)
+#elif defined(_WIN32)
+#define fseeko(x, y, z) _fseeki64(x, y, z)
+#define ftello(x)       _ftelli64(x)
 #endif
 
 #define BE_16(x) ((((uint8_t*)(x))[0] <<  8) | ((uint8_t*)(x))[1])



More information about the ffmpeg-cvslog mailing list