summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-21 21:01:16 +0100
committerCarl Hetherington <cth@carlh.net>2021-12-21 21:03:07 +0100
commit03ac5ddb97fdaf7c8c46bd3c012cec8f04e8eabd (patch)
treeef82ad52acb4ef947dd14b0d617530ed2a818fab /test
parent531f206850224bf416a4d9854db18caa9c7b33aa (diff)
Fix trimming of ATMOS MXFs.
Diffstat (limited to 'test')
-rw-r--r--test/atmos_test.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/atmos_test.cc b/test/atmos_test.cc
index ca55a13ae..a364aa0eb 100644
--- a/test/atmos_test.cc
+++ b/test/atmos_test.cc
@@ -90,3 +90,18 @@ BOOST_AUTO_TEST_CASE (atmos_encrypted_passthrough_test)
cl.run ();
}
+
+BOOST_AUTO_TEST_CASE (atmos_trim_test)
+{
+ Cleanup cl;
+
+ auto ref = TestPaths::private_data() / "atmos_asset.mxf";
+ auto content = content_factory (TestPaths::private_data() / "atmos_asset.mxf").front();
+ auto film = new_test_film2 ("atmos_trim_test", {content}, &cl);
+
+ content->set_trim_start (dcpomatic::ContentTime::from_seconds(1));
+
+ /* Just check that the encode runs; I'm not sure how to test the MXF */
+ make_and_verify_dcp (film, { dcp::VerificationNote::Code::MISSING_CPL_METADATA });
+}
+