[xiph-cvs] cvs commit: vorbis-tools/oggenc encode.c oggenc.c
Jack Moffitt
jack at xiph.org
Wed Dec 19 10:29:27 PST 2001
jack 01/12/19 10:29:27
Modified: oggenc encode.c oggenc.c
Log:
Quality is 0-10, not 0-1.
Revision Changes Path
1.14 +2 -2 vorbis-tools/oggenc/encode.c
Index: encode.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/encode.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- encode.c 2001/12/18 06:29:20 1.13
+++ encode.c 2001/12/19 18:29:26 1.14
@@ -283,10 +283,10 @@
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);
+ quality * 10);
else
fprintf(stderr, "Encoding %s%s%s to \n "
"%s%s%s at bitrate %d kbps\n",
1.37 +1 -0 vorbis-tools/oggenc/oggenc.c
Index: oggenc.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/oggenc.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- oggenc.c 2001/12/18 06:37:51 1.36
+++ oggenc.c 2001/12/19 18:29:26 1.37
@@ -549,6 +549,7 @@
fprintf(stderr, "Quality option \"%s\" not recognised, ignoring\n", optarg);
break;
}
+ opt->quality *= 0.1;
if(opt->quality > 1.0f)
{
opt->quality = 1.0f;
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list