Merge tag 'v2.16.78' into v2.17.x
[dcpomatic.git] / src / tools / dcpomatic_cli.cc
index 9cb3c832a9c5bb6f77bd68221e2393b57617b580..c2e7ee76cf3c35860c7ab8982c19e0b5dcfbc0ae 100644 (file)
@@ -106,8 +106,8 @@ print_dump (shared_ptr<Film> film)
                     << " start trim " << c->trim_start().seconds ()
                     << " end trim " << c->trim_end().seconds () << "\n";
 
-               if (c->video) {
-                       cout << "\t" << c->video->size().width << "x" << c->video->size().height << "\n"
+               if (c->video && c->video->size()) {
+                       cout << "\t" << c->video->size()->width << "x" << c->video->size()->height << "\n"
                             << "\t" << c->active_video_frame_rate(film) << "fps\n"
                             << "\tcrop left " << c->video->requested_left_crop()
                             << " right " << c->video->requested_right_crop()