+ /* Use a dummy value here; it will be replaced when the VF is re-examined. */
+ _video_size = dcp::Size(1998, 1080);
+ } else {
+ LOG_GENERAL("Main picture %1 of reel %2 found", reel->main_picture()->id(), reel->id());
+
+ auto const frac = reel->main_picture()->edit_rate();
+ float const fr = float(frac.numerator) / frac.denominator;
+ if (!_video_frame_rate) {
+ _video_frame_rate = fr;
+ } else if (_video_frame_rate.get() != fr) {
+ throw DCPError (_("Mismatched frame rates in DCP"));
+ }
+
+ auto asset = reel->main_picture()->asset();
+ if (!_video_size) {
+ _video_size = asset->size ();
+ } else if (_video_size.get() != asset->size ()) {
+ throw DCPError (_("Mismatched video sizes in DCP"));
+ }