Make DCPExaminer::size() optional and deal with the consequences.
[dcpomatic.git] / src / lib / dcp_content.cc
index e22f69f56c62b8373b58e60dc04fb8d81d311a12..6185b3a19db2cfbd4e49474794b3b3057154022a 100644 (file)
@@ -830,7 +830,7 @@ DCPContent::kdm_timing_window_valid () const
 Resolution
 DCPContent::resolution () const
 {
-       if (video->size().width > 2048 || video->size().height > 1080) {
+       if (video->size() && (video->size()->width > 2048 || video->size()->height > 1080)) {
                return Resolution::FOUR_K;
        }