diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-10 13:19:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-10 13:19:09 +0000 |
| commit | 3d9b5186aa39150e53aef3bab09f4350f85cb885 (patch) | |
| tree | aec2493b2d319f2694ebe7304990c6addb702fc7 /src/lib/ffmpeg_decoder.h | |
| parent | 5c225839172ce9f0a9be81dabfbbeb3190a9ff20 (diff) | |
More various AudioStream hacks.
Diffstat (limited to 'src/lib/ffmpeg_decoder.h')
| -rw-r--r-- | src/lib/ffmpeg_decoder.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index 8373125cd..856ac0801 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -58,13 +58,9 @@ public: /* Methods to query our input video */ float frames_per_second () const; Size native_size () const; - int audio_channels () const; - int audio_sample_rate () const; - int64_t audio_channel_layout () const; - bool has_subtitles () const; - std::vector<AudioStream> audio_streams () const; - std::vector<SubtitleStream> subtitle_streams () const; + void set_audio_stream (boost::optional<AudioStream>); + void set_subtitle_stream (boost::optional<SubtitleStream>); private: @@ -89,14 +85,9 @@ private: AVFormatContext* _format_context; int _video_stream; - int _audio_stream; ///< may be < 0 if there is no audio - int _subtitle_stream; ///< may be < 0 if there is no subtitle AVFrame* _frame; - std::vector<AudioStream> _audio_streams; - std::vector<SubtitleStream> _subtitle_streams; - AVCodecContext* _video_codec_context; AVCodec* _video_codec; AVCodecContext* _audio_codec_context; ///< may be 0 if there is no audio |
