summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-19 10:18:55 +0100
committerCarl Hetherington <cth@carlh.net>2022-12-19 10:19:05 +0100
commit15bcb600d6cca2f880e62810ab7ddfe3f896a390 (patch)
tree0dd1ec9ff518e77948bf5b769eb27df22a7c5149
parent8f20282208b6074048516bc80bc79f22a82d6e5a (diff)
FIXME: hack out parts that don't work.asdcp-master
-rw-r--r--src/mono_picture_asset_writer.cc15
-rw-r--r--src/picture_asset_writer_common.cc3
-rw-r--r--src/stereo_picture_asset_writer.cc4
-rw-r--r--test/recovery_test.cc2
-rw-r--r--test/test.cc6
5 files changed, 15 insertions, 15 deletions
diff --git a/src/mono_picture_asset_writer.cc b/src/mono_picture_asset_writer.cc
index c8f17cbc..df6e3d45 100644
--- a/src/mono_picture_asset_writer.cc
+++ b/src/mono_picture_asset_writer.cc
@@ -109,7 +109,7 @@ MonoPictureAssetWriter::write (uint8_t const * data, int size)
uint64_t const before_offset = _state->mxf_writer.Tell ();
string hash;
- auto const r = _state->mxf_writer.WriteFrame (_state->frame_buffer, _crypto_context->context(), _crypto_context->hmac(), &hash);
+ auto const r = _state->mxf_writer.WriteFrame (_state->frame_buffer, _crypto_context->context(), _crypto_context->hmac());//, &hash);
if (ASDCP_FAILURE(r)) {
boost::throw_exception (MXFFileError ("error in writing video MXF", _file.string(), r));
}
@@ -120,17 +120,18 @@ MonoPictureAssetWriter::write (uint8_t const * data, int size)
void
-MonoPictureAssetWriter::fake_write (int size)
+MonoPictureAssetWriter::fake_write(int)
{
DCP_ASSERT (_started);
DCP_ASSERT (!_finalized);
- auto r = _state->mxf_writer.FakeWriteFrame (size);
- if (ASDCP_FAILURE(r)) {
- boost::throw_exception (MXFFileError("error in writing video MXF", _file.string(), r));
- }
+ DCP_ASSERT(false);
+ // auto r = _state->mxf_writer.FakeWriteFrame (size);
+ // if (ASDCP_FAILURE(r)) {
+ // boost::throw_exception (MXFFileError("error in writing video MXF", _file.string(), r));
+ // }
- ++_frames_written;
+ // ++_frames_written;
}
diff --git a/src/picture_asset_writer_common.cc b/src/picture_asset_writer_common.cc
index e719be72..ed17ee98 100644
--- a/src/picture_asset_writer_common.cc
+++ b/src/picture_asset_writer_common.cc
@@ -80,8 +80,7 @@ void dcp::start (PictureAssetWriter* writer, shared_ptr<P> state, Q* asset, uint
asset->file()->string().c_str(),
state->writer_info,
state->picture_descriptor,
- 16384,
- writer->_overwrite
+ 16384
);
if (ASDCP_FAILURE(r)) {
diff --git a/src/stereo_picture_asset_writer.cc b/src/stereo_picture_asset_writer.cc
index 872c59cf..edc0eebe 100644
--- a/src/stereo_picture_asset_writer.cc
+++ b/src/stereo_picture_asset_writer.cc
@@ -107,8 +107,7 @@ StereoPictureAssetWriter::write (uint8_t const * data, int size)
_state->frame_buffer,
_next_eye == Eye::LEFT ? ASDCP::JP2K::SP_LEFT : ASDCP::JP2K::SP_RIGHT,
_crypto_context->context(),
- _crypto_context->hmac(),
- &hash
+ _crypto_context->hmac()
);
if (ASDCP_FAILURE (r)) {
@@ -131,6 +130,7 @@ StereoPictureAssetWriter::fake_write (int size)
DCP_ASSERT (_started);
DCP_ASSERT (!_finalized);
+ DCP_ASSERT(false);
auto r = _state->mxf_writer.FakeWriteFrame (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));
diff --git a/test/recovery_test.cc b/test/recovery_test.cc
index 94d5e0b8..52d576cc 100644
--- a/test/recovery_test.cc
+++ b/test/recovery_test.cc
@@ -80,7 +80,7 @@ BOOST_AUTO_TEST_CASE (recovery)
fclose (f);
}
- Kumu::ResetTestRNG ();
+ // Kumu::ResetTestRNG ();
mp = make_shared<dcp::MonoPictureAsset>(dcp::Fraction (24, 1), dcp::Standard::SMPTE);
writer = mp->start_write ("build/test/baz/video2.mxf", true);
diff --git a/test/test.cc b/test/test.cc
index 5d0da302..4a8a55d0 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -249,14 +249,14 @@ check_file (boost::filesystem::path ref, boost::filesystem::path check)
RNGFixer::RNGFixer ()
{
- Kumu::cth_test = true;
- Kumu::FortunaRNG().Reset();
+ Kumu::test_fix_rng = true;
+ // Kumu::FortunaRNG().Reset();
}
RNGFixer::~RNGFixer ()
{
- Kumu::cth_test = false;
+ Kumu::test_fix_rng = false;
}