diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-15 09:43:41 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-15 09:43:41 +0000 |
| commit | bf59c288798851808359575662f202d390032aa7 (patch) | |
| tree | cbf4f646a60787614e25eeeb3c436432a04ea739 /test | |
| parent | 39f0ae0efb3406357253d19bf7588f3832735d0b (diff) | |
Use MXFAsset::_interop to decide on whether to write asset XML as Interop or SMPTE.
Diffstat (limited to 'test')
| -rw-r--r-- | test/cpl_sar.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/cpl_sar.cc b/test/cpl_sar.cc index 2beb1b65..c91ce287 100644 --- a/test/cpl_sar.cc +++ b/test/cpl_sar.cc @@ -30,12 +30,13 @@ using boost::shared_ptr; BOOST_AUTO_TEST_CASE (cpl_sar) { shared_ptr<libdcp::MonoPictureAsset> mp (new libdcp::MonoPictureAsset ("build/test/foo", "video.mxf")); + mp->set_interop (true); { mp->set_size (libdcp::Size (1998, 1080)); xmlpp::Document doc; xmlpp::Element* el = doc.create_root_node ("Test"); - mp->write_to_cpl (el, true); + mp->write_to_cpl (el); cxml::Node node (el); BOOST_CHECK_EQUAL (node.node_child("MainPicture")->string_child ("ScreenAspectRatio"), "1.85"); @@ -45,7 +46,7 @@ BOOST_AUTO_TEST_CASE (cpl_sar) mp->set_size (libdcp::Size (2048, 858)); xmlpp::Document doc; xmlpp::Element* el = doc.create_root_node ("Test"); - mp->write_to_cpl (el, true); + mp->write_to_cpl (el); cxml::Node node (el); BOOST_CHECK_EQUAL (node.node_child("MainPicture")->string_child ("ScreenAspectRatio"), "2.39"); |
