summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-04-01 00:11:35 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commitc518cd441ca263444d196b794a293a384a5d34fc (patch)
treeabe7090768134cb1e56bd5f75a9de9e18cac46a1
parent7c9d62fc64ca6d66a34063d2d01988d800b770c8 (diff)
INVALID_JPEG2000_TILE_PARTS_FOR_{2,4}K: note -> tile_parts.
-rw-r--r--src/verify.h4
-rw-r--r--src/verify_j2k.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/verify.h b/src/verify.h
index 5f678bae..43fb0b09 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -441,11 +441,11 @@ public:
/** A POC marker was found outside the main head [Bv2.1_10.2.1] */
INVALID_JPEG2000_POC_MARKER_LOCATION,
/** Invalid number of tile parts for 2K JPEG2000 stream (should be 3) [Bv2.1_10.2.1]
- * note contains the number of tile parts
+ * tile_parts contains the number of tile parts
*/
INVALID_JPEG2000_TILE_PARTS_FOR_2K,
/** Invalid number of tile parts for 4K JPEG2000 stream (should be 6) [Bv2.1_10.2.1]
- * note contains the number of tile parts
+ * tile_parts contains the number of tile parts
*/
INVALID_JPEG2000_TILE_PARTS_FOR_4K,
/** Invalid _Rsiz_ (capabilities) value in 2K JPEG2000 stream.
diff --git a/src/verify_j2k.cc b/src/verify_j2k.cc
index b2bc876f..f7f91178 100644
--- a/src/verify_j2k.cc
+++ b/src/verify_j2k.cc
@@ -217,10 +217,10 @@ dcp::verify_j2k(shared_ptr<const Data> j2k, int start_index, int frame_index, in
auto const tile_part_index = get_8();
auto tile_parts = get_8();
if (!fourk && tile_parts != 3) {
- notes.push_back({ VerificationNote::Code::INVALID_JPEG2000_TILE_PARTS_FOR_2K, fmt::to_string(tile_parts) });
+ notes.push_back(VerificationNote(VerificationNote::Code::INVALID_JPEG2000_TILE_PARTS_FOR_2K).set_tile_parts(tile_parts));
}
if (fourk && tile_parts != 6) {
- notes.push_back({ VerificationNote::Code::INVALID_JPEG2000_TILE_PARTS_FOR_4K, fmt::to_string(tile_parts) });
+ notes.push_back(VerificationNote(VerificationNote::Code::INVALID_JPEG2000_TILE_PARTS_FOR_4K).set_tile_parts(tile_parts));
}
if (tile_part_length > max_tile_part_size) {
VerificationNote note{VerificationNote::Code::INVALID_JPEG2000_TILE_PART_SIZE};