aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libmp3lame.c
diff options
context:
space:
mode:
authorJames Darnley <james.darnley@gmail.com>2010-09-15 22:10:13 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2010-09-15 22:10:13 +0000
commitefec9ac8a9a05e309e8f46f74a24e0278fc7a997 (patch)
tree5ab4ea16009690a4ca5f18dc2f0a834d253739e0 /libavcodec/libmp3lame.c
parent6c834328b9bbf051473473f05f97dd2183fd336d (diff)
downloadffmpeg-efec9ac8a9a05e309e8f46f74a24e0278fc7a997.tar.gz
Allow float values for libmp3lame quality.
Patch by James Darnley, james D darnley A gmail Originally committed as revision 25128 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libmp3lame.c')
-rw-r--r--libavcodec/libmp3lame.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index 1d74d6d59d..92b4024a0e 100644
--- a/libavcodec/libmp3lame.c
+++ b/libavcodec/libmp3lame.c
@@ -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);