projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fff07c
)
Forward-port use of _fseeki64 instead of fseek on Windows for long file support.
author
Carl Hetherington
<cth@carlh.net>
Thu, 17 Oct 2013 14:44:31 +0000
(15:44 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 17 Oct 2013 14:44:31 +0000
(15:44 +0100)
src/lib/writer.cc
patch
|
blob
|
history
diff --git
a/src/lib/writer.cc
b/src/lib/writer.cc
index 968cd1505df60ce471eed15a5c7dd8b5f901cec1..3c99830e59a888770e6b79c75f71eefab5b9e782 100644
(file)
--- 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<size_t> (data.size ())) {