From 87953d115ff3c254474d9e4db8947ee20124e2e8 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 6 Sep 2011 12:21:19 -0700 Subject: [PATCH] vpxenc: use off64_t for mingw fixes fseek errors on large files resulting in corrupt/truncated output (issue #364). Change-Id: If0e189a1591d0e95d7d237332e0bea1cf2ec5aa1 --- vpxenc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vpxenc.c b/vpxenc.c index abbf093..e8bd86d 100644 --- a/vpxenc.c +++ b/vpxenc.c @@ -47,9 +47,11 @@ typedef __int64 off_t; #define fseeko _fseeki64 #define ftello _ftelli64 #elif defined(_WIN32) -/* MinGW defines off_t, and uses f{seek,tell}o64 */ +/* MinGW defines off_t as long + and uses f{seek,tell}o64/off64_t for large files */ #define fseeko fseeko64 #define ftello ftello64 +#define off_t off64_t #endif #if defined(_MSC_VER) -- 2.7.4