summaryrefslogtreecommitdiff
path: root/src/verify.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-06-26 01:45:17 +0200
committerCarl Hetherington <cth@carlh.net>2023-06-27 00:09:54 +0200
commitc72e832423ceb81f30e8ca19bfeb87fca26298c1 (patch)
tree7981151787cad7ea2365cc302aec587079dd7ffe /src/verify.cc
parent54617cea2d186bd62eb44b07292b8722fe59ed4e (diff)
Add verifier check for the actual asset file's ID not being the same as the one in the asset map.
Diffstat (limited to 'src/verify.cc')
-rw-r--r--src/verify.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/verify.cc b/src/verify.cc
index b3fe83a2..394326fe 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1449,6 +1449,7 @@ verify_reel(
}
}
}
+
}
if (reel->main_sound() && reel->main_sound()->asset_ref().resolved()) {
@@ -2082,6 +2083,8 @@ dcp::note_to_string (VerificationNote note)
return String::compose("A subtitle or closed caption refers to a font with ID %1 that does not have a corresponding <LoadFont> node", note.id().get());
case VerificationNote::Code::MISSING_LOAD_FONT:
return String::compose("The SMPTE subtitle asset %1 has <Text> nodes but no <LoadFont> node", note.id().get());
+ case VerificationNote::Code::MISMATCHED_ASSET_MAP_ID:
+ return String::compose("The asset with ID %1 in the asset map actually has an id of %2", note.id().get(), note.other_id().get());
}
return "";