Clear out _next_time when seeking, so out-of-date values don't
[dcpomatic.git] / src / lib / ffmpeg_examiner.h
index d2e6e1a0a1da1dbd17e9778d2058a8edb389d0d4..4f5110ca041946b416238b78599f84aab3b15018 100644 (file)
@@ -53,6 +53,8 @@ public:
                return _first_video;
        }
 
+       VideoRange range () const;
+
        AVColorRange color_range () const {
                return video_codec_context()->color_range;
        }
@@ -75,8 +77,18 @@ public:
                return _rotation;
        }
 
+       bool pulldown () const {
+               return _pulldown;
+       }
+
+#ifdef DCPOMATIC_VARIANT_SWAROOP
+       boost::optional<std::string> id () const {
+               return _id;
+       }
+#endif
+
 private:
-       void video_packet (AVCodecContext *);
+       void video_packet (AVCodecContext *, std::string& temporal_reference);
        void audio_packet (AVCodecContext *, boost::shared_ptr<FFmpegAudioStream>);
 
        std::string stream_name (AVStream* s) const;
@@ -93,6 +105,11 @@ private:
        bool _need_video_length;
 
        boost::optional<double> _rotation;
+       bool _pulldown;
+
+#ifdef DCPOMATIC_VARIANT_SWAROOP
+       boost::optional<std::string> _id;
+#endif
 
        struct SubtitleStart
        {