Index: muxers.c =================================================================== --- muxers.c (revision 659) +++ muxers.c (working copy) @@ -30,6 +30,14 @@ #include "matroska.h" #include "muxers.h" +#ifdef _MSC_VER +/* LARGEFILE support */ + +#define fseek _fseeki64 +#define ftell _ftelli64 + +#endif + #ifndef _MSC_VER #include "config.h" #endif @@ -245,7 +253,7 @@ { y4m_input_t *h = handle; int i_frame_total = 0; - off_t init_pos = ftell(h->fh); + int64_t init_pos = ftell(h->fh); if( !fseek( h->fh, 0, SEEK_END ) ) { Index: x264.c =================================================================== --- x264.c (revision 659) +++ x264.c (working copy) @@ -36,6 +36,12 @@ #ifdef _MSC_VER #include /* _setmode() */ #include /* _O_BINARY */ + +/* LARGEFILE support */ + +#define fseek _fseeki64 +#define ftell _ftelli64 + #endif #ifndef _MSC_VER