Fix thinko when trying to keep channel counts even.
authorCarl Hetherington <cth@carlh.net>
Sat, 28 Oct 2023 21:02:09 +0000 (23:02 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 28 Oct 2023 21:02:09 +0000 (23:02 +0200)
src/lib/create_cli.cc

index 58aa1b01badeb91e0cf964d3585ab6d5ea0eec6a..6752be4094125f3d26dd7629f246b4215cec118b 100644 (file)
@@ -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;
        }