Conversion of frame index to FFmpeg time must always use the original or detected...
[dcpomatic.git] / src / lib / video_content.h
index d0b907cb8bceb036ffbc02cf0a83190ce7cf4c1b..62459222d84cb823d95682b65d2f44481bcc41bf 100644 (file)
@@ -115,6 +115,11 @@ public:
                return _video_frame_rate;
        }
 
+       float original_video_frame_rate () const {
+               boost::mutex::scoped_lock lm (_mutex);
+               return _original_video_frame_rate;
+       }
+       
        void set_video_frame_type (VideoFrameType);
        void set_video_frame_rate (float);
 
@@ -179,6 +184,7 @@ protected:
        void take_from_video_examiner (boost::shared_ptr<VideoExaminer>);
 
        VideoContent::Frame _video_length;
+       float _original_video_frame_rate;
        float _video_frame_rate;
 
 private: