|
|
|
@@ -61,7 +61,8 @@ static av_cold int MP3lame_encode_init(AVCodecContext *avctx) |
|
|
|
if(avctx->flags & CODEC_FLAG_QSCALE) { |
|
|
|
lame_set_brate(s->gfp, 0); |
|
|
|
lame_set_VBR(s->gfp, vbr_default); |
|
|
|
lame_set_VBR_q(s->gfp, avctx->global_quality / (float)FF_QP2LAMBDA); |
|
|
|
/* requires lame 3.98 or later */ |
|
|
|
lame_set_VBR_quality(s->gfp, avctx->global_quality/(float)FF_QP2LAMBDA); |
|
|
|
} |
|
|
|
lame_set_bWriteVbrTag(s->gfp,0); |
|
|
|
lame_set_disable_reservoir(s->gfp, avctx->flags2 & CODEC_FLAG2_BIT_RESERVOIR ? 0 : 1); |
|
|
|
|