From 88982c9301c094c7d9c1eb2ae040dfc6907bbc87 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Wed, 25 Jun 2008 16:08:48 -0500 Subject: [svn-r15279] more code cleaning --- tools/h52jpeg/h52jpeg.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/h52jpeg/h52jpeg.c b/tools/h52jpeg/h52jpeg.c index bab1b45..7a21419 100644 --- a/tools/h52jpeg/h52jpeg.c +++ b/tools/h52jpeg/h52jpeg.c @@ -139,6 +139,21 @@ int main(int argc, const char *argv[]) exit(EXIT_FAILURE); } + + if ( HDstrcmp( image_type, "gray" ) == 0 ) + { + opt.image_type = 0; + } + else if ( HDstrcmp( image_type, "true" ) == 0 ) + { + opt.image_type = 1; + } + else + { + printf("<%s> is an invalid image type\n", image_type); + exit(EXIT_FAILURE); + } + break; } /* switch */ -- cgit v0.12