summaryrefslogtreecommitdiff
path: root/src/verify_j2k.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-29 23:51:51 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commit0c3fc9e8b33494a920c89da935a100fa7307939c (patch)
tree15c72443014ffcc1d3dccbfc3563e9e27f56d491 /src/verify_j2k.cc
parentbcb1158dce040f73aef636f0a61e7ca63988711c (diff)
INVALID_JPEG2000_CODESTREAM: note -> error.
Diffstat (limited to 'src/verify_j2k.cc')
-rw-r--r--src/verify_j2k.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/verify_j2k.cc b/src/verify_j2k.cc
index 52e4dbf7..7ba349a5 100644
--- a/src/verify_j2k.cc
+++ b/src/verify_j2k.cc
@@ -366,7 +366,7 @@ dcp::verify_j2k(shared_ptr<const Data> j2k, int start_index, int frame_index, in
}
catch (InvalidCodestream const& e)
{
- VerificationNote note({VerificationNote::Code::INVALID_JPEG2000_CODESTREAM, string(e.what())});
+ VerificationNote note(VerificationNote(VerificationNote::Code::INVALID_JPEG2000_CODESTREAM).set_error(e.what()));
note.set_frame(start_index + frame_index);
note.set_frame_rate(dcp::Fraction(frame_rate, 1));
notes.push_back(note);