summaryrefslogtreecommitdiff
path: root/src/lib/encoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-04 22:29:47 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-04 22:29:47 +0100
commitaabf54736d7401437af7f066c51fee91be64e809 (patch)
tree5e3b5f6993a157fcbe75a6f37a12a603e1d9fb25 /src/lib/encoder.cc
parent6d7b419d42aa8a5df91836dee3c4b3b7a8849bf8 (diff)
Pad silence for things that already have at least some audio.
Diffstat (limited to 'src/lib/encoder.cc')
-rw-r--r--src/lib/encoder.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc
index 2c989452d..6a99132fd 100644
--- a/src/lib/encoder.cc
+++ b/src/lib/encoder.cc
@@ -433,10 +433,10 @@ Encoder::encoder_thread (ServerDescription* server)
void
Encoder::write_audio (shared_ptr<const AudioBuffers> data)
{
- AudioMapping m (_film->audio_channels ());
+ AudioMapping m (_film);
if (m.dcp_channels() != _film->audio_channels()) {
- /* Remap (currently just for mono -> 5.1) */
+ /* Remap and pad with silence */
shared_ptr<AudioBuffers> b (new AudioBuffers (m.dcp_channels(), data->frames ()));
for (int i = 0; i < m.dcp_channels(); ++i) {