c
int result = sscanf(optarg, "%d", &horizSubSampling);
if (result != 1) {
    fprintf(stderr, "Error: invalid input string\n");
    exit(1);
}
