Set correct video frame type when importing DCPs (part of #806).
[dcpomatic.git] / src / lib / dcp_examiner.cc
index fa05f6e64f5574030b0790d01b1ea1839bb9e7f6..e3b0fb6eec2c6b09c1a64f1da76d765819a90963 100644 (file)
@@ -52,6 +52,7 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content)
        , _has_subtitles (false)
        , _encrypted (false)
        , _kdm_valid (false)
+       , _three_d (false)
 {
        dcp::DCP dcp (content->directory ());
        dcp.read (false, 0, true);
@@ -139,4 +140,6 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content)
        }
 
        _standard = dcp.standard ();
+       _three_d = !reels.empty() && reels.front()->main_picture() &&
+               dynamic_pointer_cast<dcp::StereoPictureAsset> (reels.front()->main_picture()->asset());
 }