diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-05-30 16:30:19 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-05-30 16:30:19 +0200 |
commit | bd3224828f527f05fa84eb0d5bfaa2529f64145b (patch) | |
tree | 20da4794be6728f1bad50b5f8aab0e2e2a499575 | |
parent | 519ec3e652952530f975482b56ead02b03c1e28a (diff) | |
download | ufodecode-bd3224828f527f05fa84eb0d5bfaa2529f64145b.tar.gz ufodecode-bd3224828f527f05fa84eb0d5bfaa2529f64145b.tar.bz2 ufodecode-bd3224828f527f05fa84eb0d5bfaa2529f64145b.tar.xz ufodecode-bd3224828f527f05fa84eb0d5bfaa2529f64145b.zip |
clear-frame does not expect an argument
Fix problem that ipedec eats one filename after supplying "-c" or
"--clear-frame".
-rw-r--r-- | src/ufodecode.c | 2 | ||||
-rw-r--r-- | test/ipedec.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/ufodecode.c b/src/ufodecode.c index e3344cd..7be41bc 100644 --- a/src/ufodecode.c +++ b/src/ufodecode.c @@ -407,14 +407,12 @@ static int ufo_decode_frame_channels_v5(ufo_decoder decoder, fprintf(stderr, "Error: row_number in header is %i instead of %i\n", header->row_number, row); return 1; - /* abort(); */ } if (header->pixel_number > 128) { fprintf(stderr, "Error: pixel_number in header is %i instead of %i\n", header->pixel_number, pix); return 1; - /* abort(); */ } index = header->row_number * IPECAMERA_WIDTH + header->pixel_number; diff --git a/test/ipedec.c b/test/ipedec.c index 43e4641..c777e50 100644 --- a/test/ipedec.c +++ b/test/ipedec.c @@ -124,7 +124,7 @@ int main(int argc, char const* argv[]) return 0; } - while ((getopt_ret = getopt_long(argc, (char *const *) argv, "r:c:h", long_options, &index)) != -1) { + while ((getopt_ret = getopt_long(argc, (char *const *) argv, "r:ch", long_options, &index)) != -1) { switch (getopt_ret) { case 'r': rows = atoi(optarg); |