summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index f4912de..7558f96 100644
--- a/main.c
+++ b/main.c
@@ -206,7 +206,7 @@ parse_options(options_t *options, int argc, char *argv[])
if (parse_arg(argc, argv, "-b", "--bit-depth", &value, &i, &error)) {
if (!str_to_uint(value, &options->bit_depth)
- || options->bit_depth <= 0
+ || options->bit_depth <= 1
|| options->bit_depth > 24) {
fprintf(stderr, "Invalid bit depth: `%s'\n", value);
error = true;