Don't trust video timestamps from FFmpegDecoder.
[dcpomatic.git] / src / lib / video_decoder.h
index ed56feea05284ccc785e74ba1167b2049cf6322f..98a8e7b7a259a9960f277b4c708217b0c911ebb1 100644 (file)
@@ -51,7 +51,7 @@ public:
        friend struct ffmpeg_pts_offset_test;
        friend void ffmpeg_decoder_sequential_test_one (boost::filesystem::path file, float fps, int gaps, int video_length);
 
-       ContentTime position (boost::shared_ptr<const Film>) const {
+       boost::optional<ContentTime> position (boost::shared_ptr<const Film>) const {
                return _position;
        }
 
@@ -63,10 +63,10 @@ public:
 
 private:
        boost::shared_ptr<const Content> _content;
-       /** Frame of last thing to be emitted */
+       /** Frame of last thing to be emitted; only used for 3D */
        boost::optional<Frame> _last_emitted_frame;
        boost::optional<Eyes> _last_emitted_eyes;
-       ContentTime _position;
+       boost::optional<ContentTime> _position;
 };
 
 #endif