diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-01 17:23:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-01 17:23:39 +0100 |
| commit | 97d25da42455d0ed93c2eebe023883767bb12d53 (patch) | |
| tree | 3fe2d7b795e61fcc084e3f556e6f1be2e95b0c1c /src/lib/ffmpeg_audio_stream.h | |
| parent | bf1191b8c548903f7a7d0664a51d15611573d00b (diff) | |
Put codec name into the audio mapping view for each stream.
Diffstat (limited to 'src/lib/ffmpeg_audio_stream.h')
| -rw-r--r-- | src/lib/ffmpeg_audio_stream.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_audio_stream.h b/src/lib/ffmpeg_audio_stream.h index 31ec9d125..a754ec574 100644 --- a/src/lib/ffmpeg_audio_stream.h +++ b/src/lib/ffmpeg_audio_stream.h @@ -32,6 +32,12 @@ public: , AudioStream (frame_rate, length, channels) {} + FFmpegAudioStream (std::string name, std::string codec_name_, int id, int frame_rate, Frame length, int channels) + : FFmpegStream (name, id) + , AudioStream (frame_rate, length, channels) + , codec_name (codec_name_) + {} + FFmpegAudioStream (std::string name, int id, int frame_rate, Frame length, AudioMapping mapping) : FFmpegStream (name, id) , AudioStream (frame_rate, length, mapping) @@ -44,6 +50,7 @@ public: /* XXX: should probably be locked */ boost::optional<ContentTime> first_audio; + boost::optional<std::string> codec_name; private: friend struct ffmpeg_pts_offset_test; |
