changeset 8781:0960d775e97b libavcodec

libvorbis: Use 0-10 range for audio quality. Patch by Nicolas George (nicolas george normalesup org)
author jbr
date Mon, 09 Feb 2009 22:11:28 +0000
parents 56c41adae7d8
children bf4b7bde40ab
files libvorbis.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvorbis.c	Mon Feb 09 22:04:34 2009 +0000
+++ b/libvorbis.c	Mon Feb 09 22:11:28 2009 +0000
@@ -57,7 +57,7 @@
         /* variable bitrate */
         if(vorbis_encode_setup_vbr(vi, avccontext->channels,
                 avccontext->sample_rate,
-                avccontext->global_quality / (float)FF_QP2LAMBDA))
+                avccontext->global_quality / (float)FF_QP2LAMBDA / 10.0))
             return -1;
     } else {
         /* constant bitrate */