summaryrefslogtreecommitdiff
path: root/src/verify_j2k.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-30 13:03:04 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commit34eab24abebc4f2b6281c5dba112fe9c872878c4 (patch)
tree85de5090df4ebc8f0c238ccee17bec92b860fffa /src/verify_j2k.cc
parent8ab777193f5a3d4d201affa8665aa03f94e0bcd8 (diff)
INCORRECT_JPEG2000_POC_MARKER_COUNT_FOR_{2,4}K: note -> poc_markers.
Diffstat (limited to 'src/verify_j2k.cc')
-rw-r--r--src/verify_j2k.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/verify_j2k.cc b/src/verify_j2k.cc
index 4458cfa3..f070e78b 100644
--- a/src/verify_j2k.cc
+++ b/src/verify_j2k.cc
@@ -356,10 +356,10 @@ dcp::verify_j2k(shared_ptr<const Data> j2k, int start_index, int frame_index, in
throw InvalidCodestream("more than one QCD marker found");
}
if (num_POC_in_main != 0 && !fourk) {
- notes.push_back({ VerificationNote::Code::INCORRECT_JPEG2000_POC_MARKER_COUNT_FOR_2K, fmt::to_string(num_POC_in_main) });
+ notes.push_back(VerificationNote(VerificationNote::Code::INCORRECT_JPEG2000_POC_MARKER_COUNT_FOR_2K).set_poc_markers(num_POC_in_main));
}
if (num_POC_in_main != 1 && fourk) {
- notes.push_back({ VerificationNote::Code::INCORRECT_JPEG2000_POC_MARKER_COUNT_FOR_4K, fmt::to_string(num_POC_in_main) });
+ notes.push_back(VerificationNote(VerificationNote::Code::INCORRECT_JPEG2000_POC_MARKER_COUNT_FOR_4K).set_poc_markers(num_POC_in_main));
}
if (num_POC_after_main != 0) {
notes.push_back ({ VerificationNote::Code::INVALID_JPEG2000_POC_MARKER_LOCATION });