From f443c3161460c1b927ec9072fdc4e76a2f156cab Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 27 Dec 2022 22:45:33 +0100 Subject: Add OK note when picture asset hashes are correct. --- src/verify.cc | 3 +++ src/verify.h | 1 + 2 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/verify.cc b/src/verify.cc index 85d09204..9756f9c7 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -619,6 +619,7 @@ verify_main_picture_asset(Context& context, shared_ptr r context.error(VerificationNote::Code::MISMATCHED_PICTURE_HASHES, file); break; default: + context.ok(VerificationNote::Code::CORRECT_PICTURE_HASH, file); break; } } @@ -1933,6 +1934,8 @@ dcp::note_to_string (VerificationNote note) return String::compose("The picture in a reel has an invalid frame rate %1.", note.note().get()); case VerificationNote::Code::INCORRECT_PICTURE_HASH: return String::compose("The hash (%1) of the picture asset %2 does not agree with the PKL file (%3).", note.calculated_hash().get(), note.file()->filename(), note.reference_hash().get()); + case VerificationNote::Code::CORRECT_PICTURE_HASH: + return String::compose("The picture asset %1 has the expected hashes in the CPL and PKL.", note.file()->filename()); case VerificationNote::Code::MISMATCHED_PICTURE_HASHES: return String::compose("The PKL and CPL hashes differ for the picture asset %1.", note.file()->filename()); case VerificationNote::Code::INCORRECT_SOUND_HASH: diff --git a/src/verify.h b/src/verify.h index eeda0b7a..339f4186 100644 --- a/src/verify.h +++ b/src/verify.h @@ -114,6 +114,7 @@ public: * note contains the invalid frame rate as "/" */ INVALID_PICTURE_FRAME_RATE, + CORRECT_PICTURE_HASH, /** The hash of a main picture asset does not agree with the PKL file * file contains the picture asset filename * calculated_hash contains the current hash of the picture MXF -- cgit v1.2.3