diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-26 16:35:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-26 16:35:43 +0100 |
| commit | d39bfb9a1360a83f3451b79d01fdc4f465ef21d3 (patch) | |
| tree | 64ea69741155d15d114ad96daf0f90e24b3abe28 /src/lib/ffmpeg_decoder.h | |
| parent | 7cd29c67a1977d67fc63f58c1d29826d7993a750 (diff) | |
Improve FFmpeg sync, in theory.
Diffstat (limited to 'src/lib/ffmpeg_decoder.h')
| -rw-r--r-- | src/lib/ffmpeg_decoder.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index a8eabb972..8f0482aad 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -38,6 +38,7 @@ extern "C" { #include "ffmpeg.h" class Film; +class ffmpeg_pts_offset_test; /** @class FFmpegDecoder * @brief A decoder using FFmpeg to decode content. @@ -54,11 +55,14 @@ public: bool done () const; private: + friend class ::ffmpeg_pts_offset_test; /* No copy construction */ FFmpegDecoder (FFmpegDecoder const &); FFmpegDecoder& operator= (FFmpegDecoder const &); + static double compute_pts_offset (double, double, float); + void setup_subtitle (); AVSampleFormat audio_sample_format () const; @@ -79,4 +83,6 @@ private: bool _decode_video; bool _decode_audio; + + double _pts_offset; }; |
