Forward-port use of _fseeki64 instead of fseek on Windows for long file support.
authorCarl Hetherington <cth@carlh.net>
Thu, 17 Oct 2013 14:44:31 +0000 (15:44 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 17 Oct 2013 14:44:31 +0000 (15:44 +0100)
src/lib/writer.cc

index 968cd1505df60ce471eed15a5c7dd8b5f901cec1..3c99830e59a888770e6b79c75f71eefab5b9e782 100644 (file)
@@ -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<size_t> (data.size ())) {