summaryrefslogtreecommitdiff
path: root/src/verify.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-30 23:19:29 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commit426c98459c8aad043d42535c0b36300c7dc63215 (patch)
tree208797c6ff55037cf918e489662ed7a7de7fd1fa /src/verify.cc
parent9e1f77e3d4c34a4f197f01570c8017309c214256 (diff)
VALID_MAIN_PICTURE_ACTIVE_AREA: note -> size_in_pixels.
Diffstat (limited to 'src/verify.cc')
-rw-r--r--src/verify.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/verify.cc b/src/verify.cc
index 432d5b1f..0c993fd5 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1670,10 +1670,7 @@ verify_cpl(Context& context, shared_ptr<const CPL> cpl)
}
if (main_picture_active_area && active_area_ok) {
- context.add_note(
- VerificationNote::Code::VALID_MAIN_PICTURE_ACTIVE_AREA, String::compose("%1x%2", main_picture_active_area->width, main_picture_active_area->height),
- cpl->file().get()
- );
+ context.add_note(VerificationNote(VerificationNote::Code::VALID_MAIN_PICTURE_ACTIVE_AREA, cpl->file().get()).set_size_in_pixels(*main_picture_active_area));
}
int64_t frame = 0;
@@ -2180,7 +2177,7 @@ dcp::note_to_string(VerificationNote note, function<string (string)> process_str
case VerificationNote::Code::INVALID_MAIN_PICTURE_ACTIVE_AREA:
return compose("<MainPictureActiveaArea> has an invalid value: %1", *note.error());
case VerificationNote::Code::VALID_MAIN_PICTURE_ACTIVE_AREA:
- return compose("<MainPictureActiveaArea> %1 is valid", note.note().get());
+ return compose("<MainPictureActiveaArea> %1x%2 is valid", note.size_in_pixels()->width, note.size_in_pixels()->height);
case VerificationNote::Code::DUPLICATE_ASSET_ID_IN_PKL:
return compose("The PKL %1 has more than one asset with the same ID.", note.note().get());
case VerificationNote::Code::DUPLICATE_ASSET_ID_IN_ASSETMAP: