From 4cb33e432c7070f59c3ee3fbeb0b5c8755bba3bd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 22 Oct 2012 11:21:31 +0100 Subject: Partial fix to sync according to pts. --- src/lib/ffmpeg_decoder.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/ffmpeg_decoder.h') diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index 339afbaef..dc10635a5 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -66,6 +66,7 @@ public: int64_t audio_channel_layout () const; bool has_subtitles () const; int bytes_per_audio_sample () const; + int audio_to_discard () const; std::vector audio_streams () const; std::vector subtitle_streams () const; @@ -105,4 +106,7 @@ private: AVCodec* _subtitle_codec; ///< may be 0 if there is no subtitle AVPacket _packet; + + int64_t _first_video_pts; + int64_t _first_audio_pts; }; -- cgit v1.2.3