X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fverify.cc;h=e31fa682df73eaca67a7acaeedfc31688bce40ce;hb=d39880eef211a296fa8ef4712cdef5945d08527c;hp=aad6952f6c9b06575a7d8dc9181a4403a8e42ff5;hpb=2b866f66dda50b955ec0de240585a9d895eb5fec;p=libdcp.git diff --git a/src/verify.cc b/src/verify.cc index aad6952f..e31fa682 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -78,10 +78,10 @@ using std::string; using std::cout; using std::map; using std::max; -using boost::shared_ptr; +using std::shared_ptr; using boost::optional; using boost::function; -using boost::dynamic_pointer_cast; +using std::dynamic_pointer_cast; using namespace dcp; using namespace xercesc; @@ -405,13 +405,13 @@ enum VerifyPictureAssetResult int biggest_frame_size (shared_ptr frame) { - return frame->j2k_size (); + return frame->size (); } int biggest_frame_size (shared_ptr frame) { - return max(frame->left_j2k_size(), frame->right_j2k_size()); + return max(frame->left()->size(), frame->right()->size()); } @@ -598,7 +598,7 @@ dcp::verify ( /* Check that the CPL's hash corresponds to the PKL */ BOOST_FOREACH (shared_ptr i, dcp->pkls()) { optional h = i->hash(cpl->id()); - if (h && make_digest(Data(*cpl->file())) != *h) { + if (h && make_digest(ArrayData(*cpl->file())) != *h) { notes.push_back (VerificationNote(VerificationNote::VERIFY_ERROR, VerificationNote::CPL_HASH_INCORRECT)); } }