From: Carl Hetherington Date: Thu, 17 Oct 2013 14:44:31 +0000 (+0100) Subject: Forward-port use of _fseeki64 instead of fseek on Windows for long file support. X-Git-Tag: v2.0.48~1255 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=b62341601bd2c7022ea1c60bf06d3d8d11bf667f;p=dcpomatic.git Forward-port use of _fseeki64 instead of fseek on Windows for long file support. --- diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 968cd1505..3c99830e5 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -434,7 +434,11 @@ Writer::check_existing_picture_mxf_frame (FILE* mxf, int f, Eyes eyes) } /* Read the data from the MXF and hash it */ +#ifdef DCPOMATIC_WINDOWS + _fseeki64 (mxf, info.offset, SEEK_SET); +#else fseek (mxf, info.offset, SEEK_SET); +#endif EncodedData data (info.size); size_t const read = fread (data.data(), 1, data.size(), mxf); if (read != static_cast (data.size ())) {