diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-03-22 21:49:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-03-22 23:51:00 +0100 |
| commit | f5d9e1e12f0fd3c25ca921e60126443b3a2cd240 (patch) | |
| tree | 16d16a38cca642419bb8b0153123f1d57d532b73 /src/verify_j2k.cc | |
| parent | 2fca6ad9716429660e7162807582db00c3ca6865 (diff) | |
Use a dcp::Fraction for verification note frame rate.
Diffstat (limited to 'src/verify_j2k.cc')
| -rw-r--r-- | src/verify_j2k.cc | 4 |
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); } } |
