From 81563a7c815da766a5373994a4ed12e62997a88e Mon Sep 17 00:00:00 2001 From: ferrari <maxence.ferrari@gmail.com> Date: Fri, 6 May 2022 10:30:00 +0200 Subject: [PATCH] Fix bit_depth option --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 0eb4009..7b69b06 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -170,7 +170,7 @@ int main(int argc, char *argv[]) { }} else if (strcmp(argv[i], "--bit_depth") == 0 || strcmp(argv[i], "-b") == 0) { bit_depth = atoi(argv[++i]); - if (not(bit_depth % 8)) { + if (bit_depth % 8) { std::cout << "Error: DEPTH must be a multiple of 8, got " << bit_depth << " instead" << std::endl; return 2; }} -- GitLab