diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-06 19:30:00 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-06 19:30:00 +0000 |
| commit | b8c235e96ee6ac9548263682eb6c92bf28fc29b0 (patch) | |
| tree | 1c7e8a6ce0c2fc0d8c42fcff99da3b59f56cc0d5 /src | |
| parent | 59f7cacd98de32c70787a4b4fb69cbddbc94016b (diff) | |
More DCP verification detail and testing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/verify.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/verify.cc b/src/verify.cc index bd61124c..2288200b 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -127,6 +127,18 @@ dcp::verify (vector<boost::filesystem::path> directories, function<void (string, BOOST_FOREACH (shared_ptr<Reel> reel, cpl->reels()) { stage ("Checking reel", optional<boost::filesystem::path>()); if (reel->main_picture()) { + /* Check reel stuff */ + Fraction const frame_rate = reel->main_picture()->frame_rate(); + if (frame_rate.denominator != 1 || + (frame_rate.numerator != 24 && + frame_rate.numerator != 25 && + frame_rate.numerator != 30 && + frame_rate.numerator != 48 && + frame_rate.numerator != 50 && + frame_rate.numerator != 60)) { + notes.push_back (VerificationNote (VerificationNote::VERIFY_ERROR, "Invalid frame rate for picture")); + } + /* Check asset */ stage ("Checking picture asset hash", reel->main_picture()->asset()->file()); Result const r = verify_asset (dcp, reel->main_picture(), progress); switch (r) { |
