Make DCPExaminer::size() optional and deal with the consequences.
[dcpomatic.git] / src / lib / hints.cc
index 7537317d40b77d89b80876699cadb48230621622..bbd5ae5d594e5a3b1b81ac4f3ad1ab7bb4ba10ae 100644 (file)
@@ -128,8 +128,8 @@ Hints::check_incorrect_container ()
        int narrower_than_scope = 0;
        int scope = 0;
        for (auto i: film()->content()) {
-               if (i->video) {
-                       auto const r = Ratio::nearest_from_ratio(i->video->scaled_size(film()->frame_size()).ratio());
+               if (i->video && i->video->size()) {
+                       auto const r = Ratio::nearest_from_ratio(i->video->scaled_size(film()->frame_size())->ratio());
                        if (r && r->id() == "239") {
                                ++scope;
                        } else if (r && r->id() != "239" && r->id() != "235" && r->id() != "190") {