Clear out _next_time when seeking, so out-of-date values don't
[dcpomatic.git] / src / lib / ffmpeg_examiner.h
index 1c0dad3dc6fc15eb324f61c61b3324e4fcec0893..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,6 +77,10 @@ public:
                return _rotation;
        }
 
+       bool pulldown () const {
+               return _pulldown;
+       }
+
 #ifdef DCPOMATIC_VARIANT_SWAROOP
        boost::optional<std::string> id () const {
                return _id;
@@ -82,7 +88,7 @@ public:
 #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;
@@ -99,6 +105,7 @@ private:
        bool _need_video_length;
 
        boost::optional<double> _rotation;
+       bool _pulldown;
 
 #ifdef DCPOMATIC_VARIANT_SWAROOP
        boost::optional<std::string> _id;