diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-11 22:43:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-11 22:43:43 +0200 |
| commit | 14d7bb4bd3c9027fc820fd54ef4fa60d00a75088 (patch) | |
| tree | cc17b72b1268dc3520b933aa4012c7da29e92e77 | |
| parent | 00785e7e8b2cf67f630df65ce8caf0b2d9a0c93e (diff) | |
Some dcpverify output tidying.
| -rw-r--r-- | tools/dcpverify.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/dcpverify.cc b/tools/dcpverify.cc index 1eb0da2a..b9b3c997 100644 --- a/tools/dcpverify.cc +++ b/tools/dcpverify.cc @@ -153,7 +153,13 @@ main (int argc, char* argv[]) auto notes = dcp::verify(directories, stage, progress); dcp::filter_notes (notes, ignore_missing_assets); + if (!quiet) { + cout << "\n"; + } + bool failed = false; + bool bv21_failed = false; + bool warned = false; for (auto i: notes) { if (ignore_bv21_smpte && i.code() == dcp::VerificationNote::Code::INVALID_STANDARD) { continue; @@ -165,14 +171,19 @@ main (int argc, char* argv[]) break; case dcp::VerificationNote::Type::BV21_ERROR: cout << "Bv2.1 error: " << note_to_string(i) << "\n"; + bv21_failed = true; break; case dcp::VerificationNote::Type::WARNING: cout << "Warning: " << note_to_string(i) << "\n"; + warned = true; break; } } if (!failed && !quiet) { + if (bv21_failed || warned) { + cout << "\n"; + } cout << "DCP verified OK.\n"; } |
