From cc6a2fe7ee05718d549e72eb740d0eae290f8ecb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 24 May 2024 22:58:32 +0200 Subject: Check that DCPs have 24-bit audio. --- src/verify.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/verify.cc') diff --git a/src/verify.cc b/src/verify.cc index 56e6b5b8..1f0d7790 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -714,6 +714,9 @@ verify_main_sound_asset(Context& context, shared_ptr reel_ if (asset->sampling_rate() != 48000) { context.bv21_error(VerificationNote::Code::INVALID_SOUND_FRAME_RATE, raw_convert(asset->sampling_rate()), file); } + if (asset->bit_depth() != 24) { + context.error(VerificationNote::Code::INVALID_SOUND_BIT_DEPTH, raw_convert(asset->bit_depth()), file); + } } @@ -2054,6 +2057,8 @@ dcp::note_to_string(VerificationNote note, function process_str return process_string("There are more than 32 characters in at least one closed caption line."); case VerificationNote::Code::INVALID_SOUND_FRAME_RATE: return compose("The sound asset %1 has a sampling rate of %2", filename(), note.note().get()); + case VerificationNote::Code::INVALID_SOUND_BIT_DEPTH: + return compose("The sound asset %1 has a bit depth of %2", filename(), note.note().get()); case VerificationNote::Code::MISSING_CPL_ANNOTATION_TEXT: return compose("The CPL %1 has no tag.", note.cpl_id().get()); case VerificationNote::Code::MISMATCHED_CPL_ANNOTATION_TEXT: -- cgit v1.2.3