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.h | |
| parent | 2fca6ad9716429660e7162807582db00c3ca6865 (diff) | |
Use a dcp::Fraction for verification note frame rate.
Diffstat (limited to 'src/verify.h')
| -rw-r--r-- | src/verify.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/verify.h b/src/verify.h index af84a77f..ad74f1f2 100644 --- a/src/verify.h +++ b/src/verify.h @@ -42,6 +42,7 @@ #include "decrypted_kdm.h" +#include "types.h" #include <boost/any.hpp> #include <boost/filesystem.hpp> #include <boost/function.hpp> @@ -711,13 +712,13 @@ public: return data<std::string>(Data::OTHER_ASSET_ID); } - VerificationNote& set_frame_rate(int frame_rate) { + VerificationNote& set_frame_rate(dcp::Fraction frame_rate) { _data[Data::FRAME_RATE] = frame_rate; return *this; } - boost::optional<int> frame_rate() const { - return data<int>(Data::FRAME_RATE); + boost::optional<dcp::Fraction> frame_rate() const { + return data<dcp::Fraction>(Data::FRAME_RATE); } VerificationNote& set_calculated_hash(std::string hash) { |
