summaryrefslogtreecommitdiff
path: root/src/verify.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-26 23:59:30 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-27 01:42:04 +0100
commit2ef30cbe66ca819588bf43d892223ed9864c0e9a (patch)
tree6528f5abdbb2f3bcf8d764b0e049af5006030f59 /src/verify.cc
parent045a37dc877aecf907a517b0ec62a79efbf63f89 (diff)
Introduce and use dcp::Profile.v1.10.18
This replaces the specific flags passed to DCP::write(), is a property of the CPL (where it seems to belong) and allows us to write what I hear is the correct metadata for this mythical Bv2.0 that somebody invented.
Diffstat (limited to 'src/verify.cc')
-rw-r--r--src/verify.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/verify.cc b/src/verify.cc
index 7a2fd5cd..4568aaa1 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1319,12 +1319,14 @@ dcp::verify_extension_metadata(Context& context)
}
if (auto property_list = extension->optional_node_child("PropertyList")) {
auto properties = property_list->node_children("Property");
- auto is_bv21 = [](shared_ptr<const cxml::Node> property) {
+ auto is_bv_20_or_21 = [](shared_ptr<const cxml::Node> property) {
auto name = property->optional_node_child("Name");
auto value = property->optional_node_child("Value");
- return name && value && name->content() == "DCP Constraints Profile" && value->content() == "SMPTE-RDD-52:2020-Bv2.1";
+ string content = value ? value->content() : "";
+ return name && value && name->content() == "DCP Constraints Profile" &&
+ (content == "SMPTE-RDD-52:2020-Bv2.0" || content == "SMPTE-RDD-52:2020-Bv2.1");
};
- if (!std::any_of(properties.begin(), properties.end(), is_bv21)) {
+ if (!std::any_of(properties.begin(), properties.end(), is_bv_20_or_21)) {
malformed = "No correctly-formed DCP Constraints Profile found";
}
}