Commit 05405a7a authored by Jack Moffitt's avatar Jack Moffitt
Browse files

Quality is 0-10, not 0-1.

svn path=/trunk/vorbis-tools/; revision=2861
parent 5c927939
......@@ -283,10 +283,10 @@ void encode_error(char *errmsg)
void start_encode_full(char *fn, char *outfn, int bitrate, float quality)
if(quality >= 0.0f)
fprintf(stderr, "Encoding %s%s%s to \n %s%s%s at quality %f\n",
fprintf(stderr, "Encoding %s%s%s to \n %s%s%s at quality %2.2f\n",
fn?"\"":"", fn?fn:"standard input", fn?"\"":"",
outfn?"\"":"", outfn?outfn:"standard output", outfn?"\"":"",
quality * 10);
fprintf(stderr, "Encoding %s%s%s to \n "
"%s%s%s at bitrate %d kbps\n",
......@@ -549,6 +549,7 @@ static void parse_options(int argc, char **argv, oe_options *opt)
fprintf(stderr, "Quality option \"%s\" not recognised, ignoring\n", optarg);
opt->quality *= 0.1;
if(opt->quality > 1.0f)
opt->quality = 1.0f;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment