Ver Fonte

clear-frame does not expect an argument

Fix problem that ipedec eats one filename after supplying "-c" or
"--clear-frame".
Matthias Vogelgesang há 12 anos atrás
pai
commit
bd3224828f
2 ficheiros alterados com 1 adições e 3 exclusões
  1. 0 2
      src/ufodecode.c
  2. 1 1
      test/ipedec.c

+ 0 - 2
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;

+ 1 - 1
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);