summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-10-10 18:58:05 +0200
committerCarl Hetherington <cth@carlh.net>2020-10-10 20:14:58 +0200
commitc6cf2a5fb3a30b972c3ad9b10fa4164a66abe840 (patch)
treec9593f70698fc13b725fc4703b2ae6a698fc38a5 /src
parent5292108cb0816789a58ac469114d53ac2a5b5bde (diff)
Fix crash when loading DCPs whose ASSETMAP contains files that are
not mentioned in any PKL (#1855). Back-ported from 4c8cc9e99678a4095772f283ffaaa1d6bd8aaf67 in master.
Diffstat (limited to 'src')
-rw-r--r--src/dcp.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index 34000412..2011f04e 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -211,7 +211,12 @@ DCP::read (bool keep_going, ReadErrors* errors, bool ignore_incorrect_picture_mx
}
}
- DCP_ASSERT (pkl_type);
+ if (!pkl_type) {
+ /* This asset is in the ASSETMAP but not mentioned in any PKL so we don't
+ * need to worry about it.
+ */
+ continue;
+ }
if (*pkl_type == CPL::static_pkl_type(*_standard) || *pkl_type == InteropSubtitleAsset::static_pkl_type(*_standard)) {
xmlpp::DomParser* p = new xmlpp::DomParser;