summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-29 16:32:10 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commit53a3e519faeb354934c535f933014cc60ccc3ea4 (patch)
tree4364cb6664cc4bddc05719f9dec19ca8ae0b4439 /src
parent7192b355e9754b0551d219de26b387905287495c (diff)
INVALID_SOUND_BIT_DEPTH: note -> bit_depth.
Diffstat (limited to 'src')
-rw-r--r--src/verify.cc4
-rw-r--r--src/verify.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/verify.cc b/src/verify.cc
index a720d731..b42fdbb7 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -655,7 +655,7 @@ verify_main_sound_asset(Context& context, shared_ptr<const ReelSoundAsset> reel_
context.add_note(VerificationNote(VerificationNote::Code::INVALID_SOUND_FRAME_RATE, file).set_frame_rate(dcp::Fraction(asset->sampling_rate(), 1)));
}
if (asset->bit_depth() != 24) {
- context.add_note(VerificationNote::Code::INVALID_SOUND_BIT_DEPTH, fmt::to_string(asset->bit_depth()), file);
+ context.add_note(VerificationNote(VerificationNote::Code::INVALID_SOUND_BIT_DEPTH, file).set_bit_depth(asset->bit_depth()));
}
}
@@ -2060,7 +2060,7 @@ dcp::note_to_string(VerificationNote note, function<string (string)> process_str
case VerificationNote::Code::INVALID_SOUND_FRAME_RATE:
return compose("The sound asset %1 has a sampling rate of %2", filename(), note.frame_rate()->numerator);
case VerificationNote::Code::INVALID_SOUND_BIT_DEPTH:
- return compose("The sound asset %1 has a bit depth of %2", filename(), note.note().get());
+ return compose("The sound asset %1 has a bit depth of %2", filename(), *note.bit_depth());
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:
diff --git a/src/verify.h b/src/verify.h
index 73b1ab43..04640844 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -292,7 +292,7 @@ public:
*/
INVALID_SOUND_FRAME_RATE,
/** The audio bit depth must be 24
- * note contains the invalid bit depth
+ * bit_depth contains the invalid bit depth
* file contains the asset filename
* reel_index contains the reel index (starting from 0)
*/