From: DRC Date: Thu, 9 Dec 2010 10:01:57 +0000 (+0000) Subject: Don't require quality argument when encoding to YUV X-Git-Tag: 1.0.90~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac08ef624c8ce78d21a5165f64102feddb01f84f;p=libjpeg-turbo Don't require quality argument when encoding to YUV git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@306 632fc199-4ca6-4c93-a231-07263d6284db --- diff --git a/jpgtest.cxx b/jpgtest.cxx index 96e5173..9fe0b2c 100644 --- a/jpgtest.cxx +++ b/jpgtest.cxx @@ -383,7 +383,7 @@ void usage(char *progname) printf(" Use fast, inaccurate upsampling code to perform 4:2:2 and 4:2:0\n"); printf(" YUV decoding in libjpeg decompressor\n\n"); printf(" [-quiet]\n"); - printf(" Output in tabular rather than verbose format\n"); + printf(" Output in tabular rather than verbose format\n\n"); printf(" [-yuv]\n"); printf(" Encode RGB input as planar YUV rather than compressing as JPEG\n\n"); printf(" NOTE: If the quality is specified as a range, i.e. 90-100, a separate\n"); @@ -410,7 +410,19 @@ int main(int argc, char *argv[]) if(!stricmp(temp, ".jpg") || !stricmp(temp, ".jpeg")) decomponly=1; } - if(!decomponly) + if(argc>minarg) + { + for(i=minarg; i