From 0330d9b2924767d9240c5a25e9ed4327eb0a73bd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 18 Dec 2012 21:13:10 +0000 Subject: Try to tidy up subtitle timing and seeks wrt source frames, DCP frames and rounding. --- src/lib/ffmpeg_decoder.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/ffmpeg_decoder.h') diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index 2011ef72f..89534a38c 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -100,11 +100,13 @@ public: void set_audio_stream (boost::shared_ptr); void set_subtitle_stream (boost::shared_ptr); - bool seek (SourceFrame); + bool seek (double); + bool seek_to_last (); private: bool pass (); + bool do_seek (double p, bool); PixelFormat pixel_format () const; AVSampleFormat audio_sample_format () const; int bytes_per_audio_sample () const; -- cgit v1.2.3