Commit eb828cdd authored by jbr's avatar jbr

libvorbis: Use 0-10 range for audio quality.

Patch by Nicolas George (nicolas george normalesup org)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17107 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 75cf8cfb
......@@ -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 */
......
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