summaryrefslogtreecommitdiff
path: root/src/mono_picture_frame.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-18 19:50:19 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-18 19:50:19 +0100
commit13db82c73af330ffbc7a813cd38c5bef36d5b54c (patch)
tree0dcd6aac7e706d4fba79835d36b55412066e1f2e /src/mono_picture_frame.cc
parent08f1afc562c2f5efeca88371cc4e7ced3b2f36a2 (diff)
Fix several missing binary specifiers to fopen.
Diffstat (limited to 'src/mono_picture_frame.cc')
-rw-r--r--src/mono_picture_frame.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mono_picture_frame.cc b/src/mono_picture_frame.cc
index fe35b6a9..7a863463 100644
--- a/src/mono_picture_frame.cc
+++ b/src/mono_picture_frame.cc
@@ -44,7 +44,7 @@ MonoPictureFrame::MonoPictureFrame (boost::filesystem::path path)
{
boost::uintmax_t const size = boost::filesystem::file_size (path);
_buffer = new ASDCP::JP2K::FrameBuffer (size);
- FILE* f = fopen_boost (path, "r");
+ FILE* f = fopen_boost (path, "rb");
if (!f) {
boost::throw_exception (FileError ("could not open JPEG2000 file", path, errno));
}