diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-24 22:58:32 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-24 23:41:56 +0200 |
| commit | cc6a2fe7ee05718d549e72eb740d0eae290f8ecb (patch) | |
| tree | c760229e4f187b914ec37593258172668b32b94f /src/verify.cc | |
| parent | a4930f8185f2d3f3a9dc93b938792fae758be4d7 (diff) | |
Check that DCPs have 24-bit audio.
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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<const ReelSoundAsset> reel_ if (asset->sampling_rate() != 48000) { context.bv21_error(VerificationNote::Code::INVALID_SOUND_FRAME_RATE, raw_convert<string>(asset->sampling_rate()), file); } + if (asset->bit_depth() != 24) { + context.error(VerificationNote::Code::INVALID_SOUND_BIT_DEPTH, raw_convert<string>(asset->bit_depth()), file); + } } @@ -2054,6 +2057,8 @@ dcp::note_to_string(VerificationNote note, function<string (string)> 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 <AnnotationText> tag.", note.cpl_id().get()); case VerificationNote::Code::MISMATCHED_CPL_ANNOTATION_TEXT: |
