summaryrefslogtreecommitdiff
path: root/tjunittest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tjunittest.c')
-rw-r--r--tjunittest.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/tjunittest.c b/tjunittest.c
index 6a4022f..f793796 100644
--- a/tjunittest.c
+++ b/tjunittest.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C)2009-2014 D. R. Commander. All Rights Reserved.
+ * Copyright (C)2009-2014, 2017 D. R. Commander. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -44,12 +44,12 @@
void usage(char *progName)
{
- printf("\nUSAGE: %s [options]\n", progName);
+ printf("\nUSAGE: %s [options]\n\n", progName);
printf("Options:\n");
printf("-yuv = test YUV encoding/decoding support\n");
printf("-noyuvpad = do not pad each line of each Y, U, and V plane to the nearest\n");
printf(" 4-byte boundary\n");
- printf("-alloc = test automatic buffer allocation\n");
+ printf("-alloc = test automatic buffer allocation\n\n");
exit(1);
}
@@ -697,10 +697,9 @@ int main(int argc, char *argv[])
for(i=1; i<argc; i++)
{
if(!strcasecmp(argv[i], "-yuv")) doyuv=1;
- if(!strcasecmp(argv[i], "-noyuvpad")) pad=1;
- if(!strcasecmp(argv[i], "-alloc")) alloc=1;
- if(!strncasecmp(argv[i], "-h", 2) || !strcasecmp(argv[i], "-?"))
- usage(argv[0]);
+ else if(!strcasecmp(argv[i], "-noyuvpad")) pad=1;
+ else if(!strcasecmp(argv[i], "-alloc")) alloc=1;
+ else usage(argv[0]);
}
}
if(alloc) printf("Testing automatic buffer allocation\n");