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:
committed by
Justin Ruggles
parent
a503722750
commit
05276956ce
@@ -57,7 +57,7 @@ static int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avccontext) {
|
|||||||
/* variable bitrate */
|
/* variable bitrate */
|
||||||
if(vorbis_encode_setup_vbr(vi, avccontext->channels,
|
if(vorbis_encode_setup_vbr(vi, avccontext->channels,
|
||||||
avccontext->sample_rate,
|
avccontext->sample_rate,
|
||||||
avccontext->global_quality / (float)FF_QP2LAMBDA))
|
avccontext->global_quality / (float)FF_QP2LAMBDA / 10.0))
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
/* constant bitrate */
|
/* constant bitrate */
|
||||||
|
Reference in New Issue
Block a user