From 5e1ce36be463bfc48663d4697860340649060d01 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 22 Apr 2021 21:56:38 +0200 Subject: Don't give an error on verifying Interop DCPs with possibly-incorrectly marked 3D assets. This also adds a warning into the verification output. I don't know if this is actually a standard violation but they have been seen in the wild made by "reputable" DCP creation software. DoM bug #1976. --- test/verify_test.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'test') diff --git a/test/verify_test.cc b/test/verify_test.cc index e1637911..42da7005 100644 --- a/test/verify_test.cc +++ b/test/verify_test.cc @@ -2952,3 +2952,23 @@ BOOST_AUTO_TEST_CASE (verify_incorrect_timed_text_id) { dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::MISSING_CPL_METADATA, cpl->id(), cpl->file().get() } }); } + + +/** Check a DCP with a 3D asset marked as 2D */ +BOOST_AUTO_TEST_CASE (verify_threed_marked_as_twod) +{ + check_verify_result ( + { private_test / "data" / "xm" }, + { + { + dcp::VerificationNote::Type::WARNING, + dcp::VerificationNote::Code::THREED_ASSET_MARKED_AS_TWOD, boost::filesystem::canonical(find_file(private_test / "data" / "xm", "j2c")) + }, + { + dcp::VerificationNote::Type::BV21_ERROR, + dcp::VerificationNote::Code::INVALID_STANDARD + }, + }); + +} + -- cgit v1.2.3