diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-03-26 00:29:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-03-29 17:43:07 +0200 |
| commit | 76dcdc1b73a15b4d38bd7280af7b997f9bec7d67 (patch) | |
| tree | 61102ab1323f35c936051aa54ffb7ff9da000607 /src/tools | |
| parent | df0e4e0278e66a27f8f3980e53d262332695f679 (diff) | |
Add create support for some more audio channels.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic_create.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc index 62428b1a2..bd059e9f8 100644 --- a/src/tools/dcpomatic_create.cc +++ b/src/tools/dcpomatic_create.cc @@ -118,6 +118,18 @@ main (int argc, char* argv[]) film->set_j2k_bandwidth (*cc.j2k_bandwidth); } + int channels = 6; + for (auto cli_content: cc.content) { + if (cli_content.channel) { + channels = std::max(channels, static_cast<int>(*cli_content.channel) + 1); + } + } + if (channels % 1) { + ++channels; + } + + film->set_audio_channels(channels); + for (auto cli_content: cc.content) { auto const can = boost::filesystem::canonical (cli_content.path); vector<shared_ptr<Content>> film_content_list; |
