Skip to content
Snippets Groups Projects
Commit 81563a7c authored by ferrari's avatar ferrari
Browse files

Fix bit_depth option

parent b96ad255
No related branches found
No related tags found
2 merge requests!2HighBlueParser dev branch merged to empty main branch,!1High blue rec
......@@ -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;
}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment