diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-16 22:20:54 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-05 23:38:41 +0200 |
| commit | 8a8c977c12fc65f1f50ea05099387e0fc8840e7d (patch) | |
| tree | 2d2c8663652939d643779d1ab1c18a12813fcbd2 /src/lib/image_examiner.cc | |
| parent | efe153ab23b54cdbf28c653f2ccb0f25ca6bd015 (diff) | |
Use dcp::File in DCP-o-matic (#2231).
Diffstat (limited to 'src/lib/image_examiner.cc')
| -rw-r--r-- | src/lib/image_examiner.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/image_examiner.cc b/src/lib/image_examiner.cc index 5a1672204..6e4dea7b7 100644 --- a/src/lib/image_examiner.cc +++ b/src/lib/image_examiner.cc @@ -51,13 +51,13 @@ ImageExaminer::ImageExaminer (shared_ptr<const Film> film, shared_ptr<const Imag auto path = content->path(0); if (valid_j2k_file (path)) { auto size = boost::filesystem::file_size (path); - auto f = fopen_boost (path, "rb"); + dcp::File f(path, "rb"); if (!f) { throw FileError ("Could not open file for reading", path); } std::vector<uint8_t> buffer(size); - checked_fread (buffer.data(), size, f, path); - fclose (f); + f.checked_read(buffer.data(), size); + f.close(); try { _video_size = dcp::decompress_j2k(buffer.data(), size, 0)->size(); } catch (dcp::ReadError& e) { |
