diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-01-05 01:24:19 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-01-05 01:24:19 +0000 |
| commit | 5ee3348142f4cfafdbcf2c9c833843d717affc11 (patch) | |
| tree | 1c97c80eeccc6b5f515a611e35dee35b21d3b09b /src/stereo_picture_frame.cc | |
| parent | 740938890d95e853cf13d4780a5d674c3d6c7f6f (diff) | |
Various IMF hacks.imf
Diffstat (limited to 'src/stereo_picture_frame.cc')
| -rw-r--r-- | src/stereo_picture_frame.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/stereo_picture_frame.cc b/src/stereo_picture_frame.cc index 1bb210d6..caa89882 100644 --- a/src/stereo_picture_frame.cc +++ b/src/stereo_picture_frame.cc @@ -39,6 +39,8 @@ using namespace dcp; * @param n Frame within the asset, not taking EntryPoint into account. */ StereoPictureFrame::StereoPictureFrame (boost::filesystem::path path, int n) + /* XXX: unfortunate guesswork on this buffer size */ + : _buffer (new ASDCP::JP2K::SFrameBuffer (4 * Kumu::Megabyte)) { ASDCP::JP2K::MXFSReader reader; Kumu::Result_t r = reader.OpenRead (path.string().c_str()); @@ -46,9 +48,6 @@ StereoPictureFrame::StereoPictureFrame (boost::filesystem::path path, int n) boost::throw_exception (FileError ("could not open MXF file for reading", path, r)); } - /* XXX: unfortunate guesswork on this buffer size */ - _buffer = new ASDCP::JP2K::SFrameBuffer (4 * Kumu::Megabyte); - if (ASDCP_FAILURE (reader.ReadFrame (n, *_buffer))) { boost::throw_exception (PackageReadError (String::compose ("could not read video frame %1 of %2", n, path.string()))); } |
