From c72e832423ceb81f30e8ca19bfeb87fca26298c1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 26 Jun 2023 01:45:17 +0200 Subject: Add verifier check for the actual asset file's ID not being the same as the one in the asset map. --- src/dcp.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/dcp.cc') diff --git a/src/dcp.cc b/src/dcp.cc index 7fa84798..0d0dc690 100644 --- a/src/dcp.cc +++ b/src/dcp.cc @@ -253,7 +253,11 @@ DCP::read (vector* notes, bool ignore_incorrect_picture_m ) { bool found_threed_marked_as_twod = false; - other_assets.push_back (asset_factory(path, ignore_incorrect_picture_mxf_type, &found_threed_marked_as_twod)); + auto asset = asset_factory(path, ignore_incorrect_picture_mxf_type, &found_threed_marked_as_twod); + if (asset->id() != id) { + notes->push_back(VerificationNote(VerificationNote::Type::ERROR, VerificationNote::Code::MISMATCHED_ASSET_MAP_ID).set_id(id).set_other_id(asset->id())); + } + other_assets.push_back(asset); if (found_threed_marked_as_twod && notes) { notes->push_back ({VerificationNote::Type::WARNING, VerificationNote::Code::THREED_ASSET_MARKED_AS_TWOD, path}); } -- cgit v1.2.3