diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-05-27 20:55:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-02 13:38:21 +0100 |
| commit | 0a93237cb5e4642d3b698ff9b7d0cfae5401478c (patch) | |
| tree | b0d5255ae2b90d1c9ef489e78239c2f081ea0a9e /src/lib/ffmpeg_decoder.h | |
| parent | 608c146eb09fac2a8fc60e1a72591f6bb8364e1f (diff) | |
Handle multiple audio streams in a single piece of content
in a similar way to the V1 patch.
Diffstat (limited to 'src/lib/ffmpeg_decoder.h')
| -rw-r--r-- | src/lib/ffmpeg_decoder.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index 6f027ce1c..ec975f439 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -40,6 +40,7 @@ extern "C" { class Log; class FilterGraph; +class FFmpegAudioStream; struct ffmpeg_pts_offset_test; /** @class FFmpegDecoder @@ -57,8 +58,8 @@ private: void seek (ContentTime time, bool); void flush (); - AVSampleFormat audio_sample_format () const; - int bytes_per_audio_sample () const; + AVSampleFormat audio_sample_format (boost::shared_ptr<FFmpegAudioStream> stream) const; + int bytes_per_audio_sample (boost::shared_ptr<FFmpegAudioStream> stream) const; bool decode_video_packet (); void decode_audio_packet (); @@ -67,7 +68,7 @@ private: void decode_bitmap_subtitle (AVSubtitleRect const * rect, ContentTimePeriod period); void maybe_add_subtitle (); - boost::shared_ptr<AudioBuffers> deinterleave_audio (uint8_t** data, int size); + boost::shared_ptr<AudioBuffers> deinterleave_audio (boost::shared_ptr<FFmpegAudioStream> stream, uint8_t** data, int size); std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod, bool starting) const; std::list<ContentTimePeriod> text_subtitles_during (ContentTimePeriod, bool starting) const; |
