summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-22 11:21:31 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-22 11:21:31 +0100
commit4cb33e432c7070f59c3ee3fbeb0b5c8755bba3bd (patch)
treeb574347f4921b9b8edc9b1a64e6ae80c62b599cf /src/lib/ffmpeg_decoder.h
parent1cc6986bdc5c35fd512257336f36bdb1b4142183 (diff)
Partial fix to sync according to pts.
Diffstat (limited to 'src/lib/ffmpeg_decoder.h')
-rw-r--r--src/lib/ffmpeg_decoder.h4
1 files changed, 4 insertions, 0 deletions
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<AudioStream> audio_streams () const;
std::vector<SubtitleStream> 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;
};