summaryrefslogtreecommitdiff
path: root/src/verify_j2k.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-22 21:49:51 +0100
committerCarl Hetherington <cth@carlh.net>2026-03-22 23:51:00 +0100
commitf5d9e1e12f0fd3c25ca921e60126443b3a2cd240 (patch)
tree16d16a38cca642419bb8b0153123f1d57d532b73 /src/verify_j2k.cc
parent2fca6ad9716429660e7162807582db00c3ca6865 (diff)
Use a dcp::Fraction for verification note frame rate.
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 dcea6f60..c53a1af0 100644
--- a/src/verify_j2k.cc
+++ b/src/verify_j2k.cc
@@ -225,7 +225,7 @@ dcp::verify_j2k(shared_ptr<const Data> j2k, int start_index, int frame_index, in
if (tile_part_length > max_tile_part_size) {
VerificationNote note{VerificationNote::Code::INVALID_JPEG2000_TILE_PART_SIZE};
note.set_frame(frame_index);
- note.set_frame_rate(frame_rate);
+ note.set_frame_rate(dcp::Fraction(frame_rate, 1));
note.set_component(tile_part_index);
note.set_size(tile_part_length);
notes.push_back(note);
@@ -368,7 +368,7 @@ dcp::verify_j2k(shared_ptr<const Data> j2k, int start_index, int frame_index, in
{
VerificationNote note({VerificationNote::Code::INVALID_JPEG2000_CODESTREAM, string(e.what())});
note.set_frame(start_index + frame_index);
- note.set_frame_rate(frame_rate);
+ note.set_frame_rate(dcp::Fraction(frame_rate, 1));
notes.push_back(note);
}
}