From: Carl Hetherington Date: Fri, 29 Dec 2023 00:31:20 +0000 (+0100) Subject: Fix a couple of places where we could segfault while looking at a VF. X-Git-Tag: v1.8.92 X-Git-Url: https://git.carlh.net/gitweb/?p=libdcp.git;a=commitdiff_plain;h=ed83bc48ee5c57ab00413d86eaae46a1c8963339 Fix a couple of places where we could segfault while looking at a VF. --- 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> 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) { return static_cast(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); } }