aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorNicolas George <nicola.george@normalesup.org>2009-02-09 22:11:28 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-02-09 22:11:28 +0000
commit05276956ce3c7743f8d9cd1bb27b7d0930279d18 (patch)
tree2b53362b599b79b498715bfb60c0abd245bd2e53 /libavcodec
parenta5037227501dc4f7528684beecee954360cbd7dd (diff)
downloadffmpeg-05276956ce3c7743f8d9cd1bb27b7d0930279d18.tar.gz
libvorbis: Use 0-10 range for audio quality.
Patch by Nicolas George (nicolas george normalesup org) Originally committed as revision 17107 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libvorbis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvorbis.c b/libavcodec/libvorbis.c
index d8cba52c7e..6a5044147c 100644
--- a/libavcodec/libvorbis.c
+++ b/libavcodec/libvorbis.c
@@ -57,7 +57,7 @@ static int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avccontext) {
/* 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 */