summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-28 23:12:41 +0100
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commitcd929c438d5e727a78027607fa0c047b26e30642 (patch)
treea19b9e73252a95cca7fd7896ae7f86088db7e0e3 /src
parente144eafe81f5c7ef51d3c4078a08e69b4e9a79e7 (diff)
INVALID_INTRINSIC_DURATION: note -> asset_id.
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 0b80b460..2e4efb62 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1422,7 +1422,7 @@ verify_reel(
context.add_note(VerificationNote::Code::INVALID_DURATION, i->id());
}
if ((i->intrinsic_duration() * i->edit_rate().denominator / i->edit_rate().numerator) < 1) {
- context.add_note(VerificationNote::Code::INVALID_INTRINSIC_DURATION, i->id());
+ context.add_note(VerificationNote(VerificationNote::Code::INVALID_INTRINSIC_DURATION).set_asset_id(i->id()));
}
if (i->encryptable() && !i->hash()) {
context.add_note(VerificationNote::Code::MISSING_HASH, i->id());
@@ -1986,7 +1986,7 @@ dcp::note_to_string(VerificationNote note, function<string (string)> process_str
case VerificationNote::Code::MISSING_ASSETMAP:
return process_string("No valid ASSETMAP or ASSETMAP.xml was found.");
case VerificationNote::Code::INVALID_INTRINSIC_DURATION:
- return compose("The intrinsic duration of the asset %1 is less than 1 second.", note.note().get());
+ return compose("The intrinsic duration of the asset %1 is less than 1 second.", *note.asset_id());
case VerificationNote::Code::INVALID_DURATION:
return compose("The duration of the asset %1 is less than 1 second.", note.note().get());
case VerificationNote::Code::VALID_PICTURE_FRAME_SIZES_IN_BYTES:
diff --git a/src/verify.h b/src/verify.h
index 515bbed5..e7d70dd2 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -166,7 +166,7 @@ public:
/** No _ASSETMAP_ or _ASSETMAP.xml_ was found */
MISSING_ASSETMAP,
/** An asset's _IntrinsicDuration_ is less than 1 second
- * note contains asset ID
+ * asset_id contains asset ID
* reel_index contains the reel index (starting from 0)
*/
INVALID_INTRINSIC_DURATION,