diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-16 12:28:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-16 12:28:15 +0100 |
| commit | a4a30d3a84998801fd6132da2d9ce789351c5a8e (patch) | |
| tree | 36e051bd025577077efcd73784c6d886e80d4524 /src/lib/encoder.cc | |
| parent | 147cca5876dfbdf56e21289c3a36bec4b4850191 (diff) | |
Fix setup of resampler channel counts.
Diffstat (limited to 'src/lib/encoder.cc')
| -rw-r--r-- | src/lib/encoder.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc index 3201e6ecb..f56440dd7 100644 --- a/src/lib/encoder.cc +++ b/src/lib/encoder.cc @@ -93,13 +93,13 @@ Encoder::process_begin () decide if rematrixing is needed. It won't be, since input and output layouts are the same. */ - + _swr_context = swr_alloc_set_opts ( 0, - av_get_default_channel_layout (_film->audio_channels ()), + av_get_default_channel_layout (_film->audio_mapping().dcp_channels ()), AV_SAMPLE_FMT_FLTP, _film->target_audio_sample_rate(), - av_get_default_channel_layout (_film->audio_channels ()), + av_get_default_channel_layout (_film->audio_mapping().dcp_channels ()), AV_SAMPLE_FMT_FLTP, _film->audio_frame_rate(), 0, 0 |
