Report video range from MPEG2 DCPs correctly.
[dcpomatic.git] / src / lib / dcp_examiner.cc
index 92491947cf67665da99576da0e1fe128464194a8..2297868681457ad14b23245eb7b68e4385f8efbb 100644 (file)
@@ -164,6 +164,10 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content, bool tolerant)
                                } else if (_video_size.get() != asset->size ()) {
                                        throw DCPError (_("Mismatched video sizes in DCP"));
                                }
+
+                               if (dynamic_pointer_cast<dcp::MPEG2PictureAsset>(asset)) {
+                                       _video_range = VideoRange::VIDEO;
+                               }
                        }
                }