From 62757708dd14df8806eb6482e83afb06a6160f0a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 11 Sep 2020 01:01:07 +0200 Subject: Fix crash with one verification error and no notes list. --- src/dcp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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* 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 (new InteropSubtitleAsset (path))); -- cgit v1.2.3