Fix crash with one verification error and no notes list.
authorCarl Hetherington <cth@carlh.net>
Thu, 10 Sep 2020 23:01:07 +0000 (01:01 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 10 Sep 2020 23:03:42 +0000 (01:03 +0200)
src/dcp.cc

index 426bd81548370b87cb706f11d6d394e4fa2081dc..08785e5561e1de9ff395b1c4d6f839c4b2ebe80a 100644 (file)
@@ -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)));