summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-09-11 01:01:07 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-11 01:03:42 +0200
commit62757708dd14df8806eb6482e83afb06a6160f0a (patch)
tree0be25526d4c735f22bd2b60b4d9f21b1751903cd /src
parent1639534db734d3165726282d7530b13d6a763ebb (diff)
Fix crash with one verification error and no notes list.
Diffstat (limited to 'src')
-rw-r--r--src/dcp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index 426bd815..08785e55 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -234,7 +234,7 @@ DCP::read (list<dcp::VerificationNote>* notes, bool ignore_incorrect_picture_mxf
}
_cpls.push_back (cpl);
} else if (root == "DCSubtitle") {
- if (_standard && _standard.get() == SMPTE) {
+ if (_standard && _standard.get() == SMPTE && notes) {
notes->push_back (VerificationNote(VerificationNote::VERIFY_ERROR, VerificationNote::MISMATCHED_STANDARD));
}
other_assets.push_back (shared_ptr<InteropSubtitleAsset> (new InteropSubtitleAsset (path)));