Mercurial > libavcodec.hg
changeset 12495:fac8063ed1e7 libavcodec
Allow float values for libmp3lame quality.
Patch by James Darnley, james D darnley A gmail
author | cehoyos |
---|---|
date | Wed, 15 Sep 2010 22:10:13 +0000 |
parents | 94eaea836bf4 |
children | d9b601af5e5e |
files | libmp3lame.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmp3lame.c Wed Sep 15 04:46:55 2010 +0000 +++ b/libmp3lame.c Wed Sep 15 22:10:13 2010 +0000 @@ -61,7 +61,8 @@ 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);