From 611f2241c6732c2c38d87e129e51cf9d8d7a08b8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 10 Jul 2013 15:04:57 +0100 Subject: Basic return of subtitles. --- 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 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, boost::shared_ptr, 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 deinterleave_audio (uint8_t** data, int size); -- cgit v1.2.3