summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-10 15:04:57 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-10 15:04:57 +0100
commit611f2241c6732c2c38d87e129e51cf9d8d7a08b8 (patch)
tree0c00420654d322856aecb5c6bbaeb483b3db7211 /src/lib/ffmpeg_decoder.h
parentade36b7e120838840d0f645763b8e0814eaf9ee4 (diff)
Basic return of subtitles.
Diffstat (limited to 'src/lib/ffmpeg_decoder.h')
-rw-r--r--src/lib/ffmpeg_decoder.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h
index eebf75445..8819954db 100644
--- a/src/lib/ffmpeg_decoder.h
+++ b/src/lib/ffmpeg_decoder.h
@@ -35,6 +35,7 @@ extern "C" {
#include "decoder.h"
#include "video_decoder.h"
#include "audio_decoder.h"
+#include "subtitle_decoder.h"
#include "ffmpeg.h"
class Film;
@@ -43,7 +44,7 @@ class ffmpeg_pts_offset_test;
/** @class FFmpegDecoder
* @brief A decoder using FFmpeg to decode content.
*/
-class FFmpegDecoder : public VideoDecoder, public AudioDecoder, public FFmpeg
+class FFmpegDecoder : public VideoDecoder, public AudioDecoder, public SubtitleDecoder, public FFmpeg
{
public:
FFmpegDecoder (boost::shared_ptr<const Film>, boost::shared_ptr<const FFmpegContent>, bool video, bool audio);
@@ -69,6 +70,7 @@ private:
bool decode_video_packet ();
void decode_audio_packet ();
+ void decode_subtitle_packet ();
void maybe_add_subtitle ();
boost::shared_ptr<AudioBuffers> deinterleave_audio (uint8_t** data, int size);