From e8ce097ce705446c27b51199a321a9918deaa0db Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 31 Oct 2025 00:03:49 +0100 Subject: Allow specification of which parts of the DCP to encrypt (#3099). --- src/lib/dcp_examiner.cc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/lib/dcp_examiner.cc') diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc index 59bd47702..b94d88486 100644 --- a/src/lib/dcp_examiner.cc +++ b/src/lib/dcp_examiner.cc @@ -313,7 +313,23 @@ DCPExaminer::DCPExaminer(shared_ptr content, bool tolerant) ++reel_index; } - _encrypted = selected_cpl->any_encrypted(); + for (auto reel: selected_cpl->reels()) { + if (reel->main_picture() && reel->main_picture()->encrypted()) { + _picture_encrypted = true; + } + if (reel->main_sound() && reel->main_sound()->encrypted()) { + _sound_encrypted = true; + } + if (reel->main_subtitle() && reel->main_subtitle()->encrypted()) { + _text_encrypted = true; + } + for (auto cc: reel->closed_captions()) { + if (cc->encrypted()) { + _text_encrypted = true; + } + } + } + _kdm_valid = true; LOG_GENERAL_NC("Check that everything encrypted has a key"); -- cgit v1.2.3