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
This commit is contained in:
parent
a503722750
commit
05276956ce
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user