summaryrefslogtreecommitdiff
path: root/src/verify.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-14 22:38:58 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-17 20:13:23 +0100
commita79574aab09f3908d228b715ebbc8a2ebb16f7fb (patch)
treef43a96c40098bb92948bdd22c293eeaa1446f6ff /src/verify.cc
parentad03415009155f8771ca48200f3c4a469c85277e (diff)
Bv2.1 8.1: CPL must have <AnnotationText>.
Diffstat (limited to 'src/verify.cc')
-rw-r--r--src/verify.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/verify.cc b/src/verify.cc
index b6498891..56ef21c9 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1026,6 +1026,10 @@ dcp::verify (
verify_language_tag (cpl->release_territory().get(), notes);
}
+ if (dcp->standard() == dcp::SMPTE && !cpl->annotation_text()) {
+ notes.push_back (VerificationNote(VerificationNote::VERIFY_BV21_ERROR, VerificationNote::MISSING_ANNOTATION_TEXT_IN_CPL));
+ }
+
/* Check that the CPL's hash corresponds to the PKL */
for (auto i: dcp->pkls()) {
optional<string> h = i->hash(cpl->id());
@@ -1219,6 +1223,8 @@ dcp::note_to_string (dcp::VerificationNote note)
return "There are more than 32 characters in at least one closed caption line, which is disallowed by Bv2.1";
case dcp::VerificationNote::INVALID_SOUND_FRAME_RATE:
return "A sound asset has a sampling rate other than 48kHz, which is disallowed by Bv2.1";
+ case dcp::VerificationNote::MISSING_ANNOTATION_TEXT_IN_CPL:
+ return "The CPL has no <AnnotationText> tag, which is required by Bv2.1";
}
return "";