projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
359b3e0
)
Fix thinko when trying to keep channel counts even.
author
Carl Hetherington
<cth@carlh.net>
Sat, 28 Oct 2023 21:02:09 +0000
(23:02 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 28 Oct 2023 21:02:09 +0000
(23:02 +0200)
src/lib/create_cli.cc
patch
|
blob
|
history
diff --git
a/src/lib/create_cli.cc
b/src/lib/create_cli.cc
index 58aa1b01badeb91e0cf964d3585ab6d5ea0eec6a..6752be4094125f3d26dd7629f246b4215cec118b 100644
(file)
--- a/
src/lib/create_cli.cc
+++ b/
src/lib/create_cli.cc
@@
-381,7
+381,7
@@
CreateCLI::make_film() const
channels = std::max(channels, static_cast<int>(*cli_content.channel) + 1);
}
}
- if (channels %
1
) {
+ if (channels %
2
) {
++channels;
}