fix -strong option

was checking the presence of a useless second argument

Change-Id: I2c524a79fc7317cb8b6146c10265ee9462cd1958
This commit is contained in:
Pascal Massimino 2011-05-05 18:10:08 -07:00
parent d0a7038792
commit 842c009b38

View File

@ -698,7 +698,7 @@ int main(int argc, const char *argv[]) {
config.filter_strength = strtol(argv[++c], NULL, 0); config.filter_strength = strtol(argv[++c], NULL, 0);
} else if (!strcmp(argv[c], "-af")) { } else if (!strcmp(argv[c], "-af")) {
config.autofilter = 1; config.autofilter = 1;
} else if (!strcmp(argv[c], "-strong") && c < argc - 1) { } else if (!strcmp(argv[c], "-strong")) {
config.filter_type = 1; config.filter_type = 1;
} else if (!strcmp(argv[c], "-sharpness") && c < argc - 1) { } else if (!strcmp(argv[c], "-sharpness") && c < argc - 1) {
config.filter_sharpness = strtol(argv[++c], NULL, 0); config.filter_sharpness = strtol(argv[++c], NULL, 0);