summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-04-10 22:04:51 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-10 22:04:51 +0200
commitfd271a32fd1ffa1714f067fb3e0dcd0b8b3a1a93 (patch)
tree910b433eaad246e36c97b5d260831ddb233eac99
parentde8987885656e5658eae15e4acd14ed94fc24ec7 (diff)
Add asset ID to THREED_ASSET_MARKED_AS_TWOD.HEADmain
-rw-r--r--src/dcp.cc2
-rw-r--r--test/verify_test.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index 4d5be236..c9d1c8e7 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -274,7 +274,7 @@ DCP::read (vector<dcp::VerificationNote>* notes, bool ignore_incorrect_picture_m
}
other_assets.push_back(asset);
if (found_threed_marked_as_twod && notes) {
- notes->push_back({VerificationNote::Code::THREED_ASSET_MARKED_AS_TWOD, path});
+ notes->push_back(dcp::VerificationNote(VerificationNote::Code::THREED_ASSET_MARKED_AS_TWOD, path).set_asset_id(id));
}
} else if (*pkl_type == remove_parameters(FontAsset::static_pkl_type(standard))) {
other_assets.push_back(make_shared<FontAsset>(id, path));
diff --git a/test/verify_test.cc b/test/verify_test.cc
index e3cff85a..40a4aa1a 100644
--- a/test/verify_test.cc
+++ b/test/verify_test.cc
@@ -4881,7 +4881,7 @@ BOOST_AUTO_TEST_CASE (verify_threed_marked_as_twod)
note(VC::MATCHING_PKL_ANNOTATION_TEXT_WITH_CPL, cpl),
note(VC::MATCHING_CPL_HASHES, cpl),
note(VC::VALID_CONTENT_KIND, cpl).set_content_kind("trailer"),
- VN(VC::THREED_ASSET_MARKED_AS_TWOD, boost::filesystem::canonical(find_file(path, "j2c"))),
+ VN(VC::THREED_ASSET_MARKED_AS_TWOD, boost::filesystem::canonical(find_file(path, "j2c"))).set_asset_id("0d6f57e6-adac-4e1d-bfbe-d162bf13e2cd"),
VN(VC::INVALID_STANDARD)
});