summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-12-08 23:42:40 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-17 20:13:22 +0100
commit8dd69a2a86b64bbf5ec80a78a6ad74865f752fde (patch)
tree3edcb1bbf14b85c61e3124f3c76bfd54f6121d8c /tools
parentb6cfa3cfa660622997a52f00a9f0376339c0f743 (diff)
Bv2.1 6.1: DCPs must be SMPTE.
Diffstat (limited to 'tools')
-rw-r--r--tools/dcpverify.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/dcpverify.cc b/tools/dcpverify.cc
index c26fe7c4..b3c93bdd 100644
--- a/tools/dcpverify.cc
+++ b/tools/dcpverify.cc
@@ -57,6 +57,7 @@ help (string n)
<< " -V, --version show libdcp version\n"
<< " -h, --help show this help\n"
<< " --ignore-missing-assets don't give errors about missing assets\n"
+ << " --ignore-bv21-smpte don't give the SMPTE Bv2.1 error about a DCP not being SMPTE\n"
<< " -q, --quiet don't report progress\n";
}
@@ -86,6 +87,7 @@ main (int argc, char* argv[])
dcp::init ();
bool ignore_missing_assets = false;
+ bool ignore_bv21_smpte = false;
bool quiet = false;
int option_index = 0;
@@ -94,11 +96,12 @@ main (int argc, char* argv[])
{ "version", no_argument, 0, 'V' },
{ "help", no_argument, 0, 'h' },
{ "ignore-missing-assets", no_argument, 0, 'A' },
+ { "ignore-bv21-smpte", no_argument, 0, 'B' },
{ "quiet", no_argument, 0, 'q' },
{ 0, 0, 0, 0 }
};
- int c = getopt_long (argc, argv, "VhAq", long_options, &option_index);
+ int c = getopt_long (argc, argv, "VhABq", long_options, &option_index);
if (c == -1) {
break;
@@ -114,6 +117,9 @@ main (int argc, char* argv[])
case 'A':
ignore_missing_assets = true;
break;
+ case 'B':
+ ignore_bv21_smpte = true;
+ break;
case 'q':
quiet = true;
break;
@@ -137,6 +143,9 @@ main (int argc, char* argv[])
bool failed = false;
BOOST_FOREACH (dcp::VerificationNote i, notes) {
+ if (ignore_bv21_smpte && i.code() == dcp::VerificationNote::NOT_SMPTE) {
+ continue;
+ }
switch (i.type()) {
case dcp::VerificationNote::VERIFY_ERROR:
cout << "Error: " << note_to_string(i) << "\n";