summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-16 23:09:34 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-16 23:09:34 +0100
commit5778f4c92793a7950f02206e735a00731c87b090 (patch)
tree4d532804245e4da0b24cc0245d940edc260aa4db /src/lib/ffmpeg_content.h
parentbfc0b96db6cc6c2e94d93f9c4239adca14a6bb0c (diff)
Fix up AudioMapping confusions with respect to number of content channels.
Diffstat (limited to 'src/lib/ffmpeg_content.h')
-rw-r--r--src/lib/ffmpeg_content.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_content.h b/src/lib/ffmpeg_content.h
index bf550942a..1af586a71 100644
--- a/src/lib/ffmpeg_content.h
+++ b/src/lib/ffmpeg_content.h
@@ -24,6 +24,7 @@
#include "video_content.h"
#include "audio_content.h"
#include "subtitle_content.h"
+#include "audio_mapping.h"
class Filter;
class ffmpeg_pts_offset_test;
@@ -37,7 +38,9 @@ public:
, frame_rate (f)
, channels (c)
, mapping (c)
- {}
+ {
+ mapping.make_default ();
+ }
FFmpegAudioStream (boost::shared_ptr<const cxml::Node>);
@@ -52,8 +55,11 @@ public:
private:
friend class ffmpeg_pts_offset_test;
+
/* Constructor for tests */
- FFmpegAudioStream () {}
+ FFmpegAudioStream ()
+ : mapping (1)
+ {}
};
extern bool operator== (FFmpegAudioStream const & a, FFmpegAudioStream const & b);