Merge master.
[dcpomatic.git] / src / lib / ffmpeg_decoder.h
index e50b248cff35992ad3da52c37e6b9fb97ecf12d5..ee725b20c9c46cb066d9e98bbfd6d7331bee45c9 100644 (file)
@@ -71,9 +71,9 @@ private:
        void maybe_add_subtitle ();
        boost::shared_ptr<AudioBuffers> deinterleave_audio (uint8_t** data, int size);
 
-       bool seek_overrun_finished (ContentTime, ContentTime, ContentTime) const;
+       bool seek_overrun_finished (ContentTime, boost::optional<ContentTime>, boost::optional<ContentTime>) const;
        bool seek_final_finished (int, int) const;
-       int minimal_run (boost::function<bool (ContentTime, ContentTime, int)>);
+       int minimal_run (boost::function<bool (boost::optional<ContentTime>, boost::optional<ContentTime>, int)>);
        void seek_and_flush (int64_t);
 
        AVCodecContext* _subtitle_codec_context; ///< may be 0 if there is no subtitle
@@ -85,6 +85,5 @@ private:
        bool _decode_video;
        bool _decode_audio;
 
-       double _video_pts_offset;
-       double _audio_pts_offset;
+       double _pts_offset;
 };