Mercurial > libavcodec.hg
diff libvorbis.c @ 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 | e9d9d946f213 |
children | 043574c5c153 |
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 */