From fca073e6dfb0a11f49f40232cf2fae2da6209c54 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 30 Mar 2026 00:03:45 +0200 Subject: INVALID_JPEG2000_GUARD_BITS_FOR_{2,4}K: note -> guard_bits. --- src/verify_j2k.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/verify_j2k.cc') diff --git a/src/verify_j2k.cc b/src/verify_j2k.cc index 7ba349a5..06316025 100644 --- a/src/verify_j2k.cc +++ b/src/verify_j2k.cc @@ -270,10 +270,10 @@ dcp::verify_j2k(shared_ptr j2k, int start_index, int frame_index, in auto quantization_style = get_8(); int guard_bits = (quantization_style >> 5) & 7; if (fourk && guard_bits != 2) { - notes.push_back({ VerificationNote::Code::INVALID_JPEG2000_GUARD_BITS_FOR_4K, fmt::to_string(guard_bits) }); + notes.push_back(VerificationNote(VerificationNote::Code::INVALID_JPEG2000_GUARD_BITS_FOR_4K).set_guard_bits(guard_bits)); } if (!fourk && guard_bits != 1) { - notes.push_back({ VerificationNote::Code::INVALID_JPEG2000_GUARD_BITS_FOR_2K, fmt::to_string(guard_bits) }); + notes.push_back(VerificationNote(VerificationNote::Code::INVALID_JPEG2000_GUARD_BITS_FOR_2K).set_guard_bits(guard_bits)); } ptr += L_qcd - 3; } else if (*marker_name == "COC") { -- cgit v1.2.3