Offer has_non_zero_entry_point() from DCPExaminer.
[dcpomatic.git] / src / lib / dcp_examiner.h
index 444fb7567f6947098645591802da349f54aaacac..425552632ced7c86eca03829b82ec0557f9797db 100644 (file)
@@ -48,10 +48,8 @@ public:
                return _video_frame_rate;
        }
 
-       dcp::Size video_size () const override {
-               DCPOMATIC_ASSERT (_has_video);
-               DCPOMATIC_ASSERT (_video_size);
-               return *_video_size;
+       boost::optional<dcp::Size> video_size() const override {
+               return _video_size;
        }
 
        Frame video_length () const override {
@@ -173,6 +171,10 @@ public:
                return _atmos_edit_rate;
        }
 
+       EnumIndexedVector<bool, TextType> has_non_zero_entry_point() const {
+               return _has_non_zero_entry_point;
+       }
+
        void add_fonts(std::shared_ptr<TextContent> content);
 
 private:
@@ -208,6 +210,7 @@ private:
        bool _has_atmos = false;
        Frame _atmos_length = 0;
        dcp::Fraction _atmos_edit_rate;
+       EnumIndexedVector<bool, TextType> _has_non_zero_entry_point;
 
        struct Font
        {