diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-12-29 01:31:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-03 23:48:45 +0100 |
| commit | ed83bc48ee5c57ab00413d86eaae46a1c8963339 (patch) | |
| tree | e64610b3ee1a30a4805e12388a8ab31b2961d467 | |
| parent | f2663fa9a91acadfb014e9fb1da2736009dd3bb6 (diff) | |
Fix a couple of places where we could segfault while looking at a VF.v1.8.92
| -rw-r--r-- | src/verify.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/verify.cc b/src/verify.cc index f20c046d..c7a4f78f 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1265,7 +1265,7 @@ verify_text_details(dcp::Standard standard, vector<shared_ptr<Reel>> reels, vect return; } - if (reels[0]->main_subtitle()) { + if (reels[0]->main_subtitle() && reels[0]->main_subtitle()->asset_ref().resolved()) { verify_text_details(standard, reels, reels[0]->main_subtitle()->edit_rate().numerator, notes, [](shared_ptr<Reel> reel) { return static_cast<bool>(reel->main_subtitle()); @@ -1713,7 +1713,7 @@ verify_cpl( LinesCharactersResult result; for (auto reel: cpl->reels()) { - if (reel->main_subtitle() && reel->main_subtitle()->asset()) { + if (reel->main_subtitle() && reel->main_subtitle()->asset_ref().resolved()) { verify_text_lines_and_characters(reel->main_subtitle()->asset(), 52, 79, &result); } } |
