X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fverify.cc;h=42ee192119b85280ada83512167a01aaa2a4805d;hb=4dca630057509164494b65c2deeb748a51928c73;hp=f570a41deda4474434199001da289f2b3df4b018;hpb=eeee8ab7ad46b9eda35f0156540984d3ed340e15;p=libdcp.git diff --git a/src/verify.cc b/src/verify.cc index f570a41d..42ee1921 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -386,6 +386,12 @@ enum class VerifyAssetResult { static VerifyAssetResult verify_asset (shared_ptr dcp, shared_ptr reel_file_asset, function progress) { + /* When reading the DCP the hash will have been set to the one from the PKL/CPL. + * We want to calculate the hash of the actual file contents here, so that we + * can check it. unset_hash() means that this calculation will happen on the + * call to hash(). + */ + reel_file_asset->asset_ref()->unset_hash(); auto const actual_hash = reel_file_asset->asset_ref()->hash(progress); auto pkls = dcp->pkls(); @@ -853,12 +859,14 @@ verify_closed_caption_asset ( static void verify_text_details ( + dcp::Standard standard, vector> reels, int edit_rate, vector& notes, std::function)> check, std::function (shared_ptr)> xml, - std::function)> duration + std::function)> duration, + std::function)> id ) { /* end of last subtitle (in editable units) */ @@ -870,11 +878,19 @@ verify_text_details ( auto empty_text = false; /* current reel start time (in editable units) */ int64_t reel_offset = 0; - vector font_ids; optional missing_load_font_id; - std::function, optional