summaryrefslogtreecommitdiff
path: root/src/verify_j2k.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-30 13:17:10 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commitb4d9b7fedc37002a97ada284fd3a241a357bd8e2 (patch)
treee824a2fd5c14d0050d9640f7abad227097c71ca6 /src/verify_j2k.cc
parent34eab24abebc4f2b6281c5dba112fe9c872878c4 (diff)
INCORRECT_JPEG2000_POC_MARKER: note -> error, poc_marker.
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 f070e78b..a2b14854 100644
--- a/src/verify_j2k.cc
+++ b/src/verify_j2k.cc
@@ -317,13 +317,13 @@ dcp::verify_j2k(shared_ptr<const Data> j2k, int start_index, int frame_index, in
auto require_8_poc = [&](uint16_t value, string note) {
if (get_8() != value) {
- notes.push_back ({ VerificationNote::Code::INCORRECT_JPEG2000_POC_MARKER, String::compose(note, value) });
+ notes.push_back(VerificationNote(VerificationNote::Code::INCORRECT_JPEG2000_POC_MARKER).set_poc_marker(value).set_error(note));
}
};
auto require_16_poc = [&](uint16_t value, string note) {
if (get_16() != value) {
- notes.push_back ({ VerificationNote::Code::INCORRECT_JPEG2000_POC_MARKER, String::compose(note, value) });
+ notes.push_back (VerificationNote(VerificationNote::Code::INCORRECT_JPEG2000_POC_MARKER).set_poc_marker(value).set_error(note));
}
};