diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-14 23:38:30 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-17 20:13:23 +0100 |
| commit | ecb9344aedd1beac90668cba46e0f22bd7c7bd9f (patch) | |
| tree | 28464363a659a61e266eacbca3daa0467c251623 /src/verify.cc | |
| parent | 6e1558f51d4f90c0adf6b18dc8143274167e4d89 (diff) | |
Bv2.1 8.2: all parts of a reel must have the same duration.
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/verify.cc b/src/verify.cc index dc435706..a7f3f1da 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1065,6 +1065,18 @@ dcp::verify ( } } + if (dcp->standard() == dcp::SMPTE) { + boost::optional<int64_t> duration; + for (auto i: reel->assets()) { + if (!duration) { + duration = i->actual_duration(); + } else if (*duration != i->actual_duration()) { + notes.push_back (VerificationNote(VerificationNote::VERIFY_BV21_ERROR, VerificationNote::MISMATCHED_ASSET_DURATION, i->id())); + break; + } + } + } + if (reel->main_picture()) { /* Check reel stuff */ auto const frame_rate = reel->main_picture()->frame_rate(); @@ -1242,6 +1254,8 @@ dcp::note_to_string (dcp::VerificationNote note) return "The CPL has no <AnnotationText> tag, which is required by Bv2.1"; case dcp::VerificationNote::CPL_ANNOTATION_TEXT_DIFFERS_FROM_CONTENT_TITLE_TEXT: return "The CPL's <AnnotationText> differs from its <ContentTitleText>, which Bv2.1 advises against."; + case dcp::VerificationNote::MISMATCHED_ASSET_DURATION: + return "All assets in a reel do not have the same duration, which is required by Bv2.1"; } return ""; |
