From c518cd441ca263444d196b794a293a384a5d34fc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 1 Apr 2026 00:11:35 +0200 Subject: INVALID_JPEG2000_TILE_PARTS_FOR_{2,4}K: note -> tile_parts. --- src/verify.h | 4 ++-- src/verify_j2k.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 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}; -- cgit v1.2.3