summaryrefslogtreecommitdiff
path: root/src/stereo_j2k_picture_asset_writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-24 22:18:28 +0100
committerCarl Hetherington <cth@carlh.net>2024-04-18 12:11:43 +0200
commit0fbfe3d2dd5de9eab299f2ff569bff29cc6f8e19 (patch)
treec4dac0b23dd0c45b875721180c0bc5a18d019b6f /src/stereo_j2k_picture_asset_writer.cc
parent7c5bd17891b2ea087db6b876112a2c1f69d6215e (diff)
Pass full J2KFrameInfo into fake_write() for consistency with a forthcoming commit.
Diffstat (limited to 'src/stereo_j2k_picture_asset_writer.cc')
-rw-r--r--src/stereo_j2k_picture_asset_writer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stereo_j2k_picture_asset_writer.cc b/src/stereo_j2k_picture_asset_writer.cc
index b5263b7d..8a655fbc 100644
--- a/src/stereo_j2k_picture_asset_writer.cc
+++ b/src/stereo_j2k_picture_asset_writer.cc
@@ -128,12 +128,12 @@ StereoJ2KPictureAssetWriter::write (uint8_t const * data, int size)
void
-StereoJ2KPictureAssetWriter::fake_write (int size)
+StereoJ2KPictureAssetWriter::fake_write(J2KFrameInfo const& info)
{
DCP_ASSERT (_started);
DCP_ASSERT (!_finalized);
- auto r = _state->mxf_writer.FakeWriteFrame (size, _next_eye == Eye::LEFT ? ASDCP::JP2K::SP_LEFT : ASDCP::JP2K::SP_RIGHT);
+ auto r = _state->mxf_writer.FakeWriteFrame(info.size, _next_eye == Eye::LEFT ? ASDCP::JP2K::SP_LEFT : ASDCP::JP2K::SP_RIGHT);
if (ASDCP_FAILURE(r)) {
boost::throw_exception (MXFFileError("error in writing video MXF", _file.string(), r));
}