diff options
author | Paul Kelly <paul@stjohnspoint.co.uk> | 2008-02-11 08:01:07 +0000 |
---|---|---|
committer | Andreas Ă–man <andreas@lonelycoder.com> | 2008-02-11 08:01:07 +0000 |
commit | f1618fd939be124555c98f453fc3a8f36e02fc37 (patch) | |
tree | b82e17c5567c3cc3afd15d26c377c4293950e8c2 /libavcodec/libmp3lame.c | |
parent | 03c09e43993a7c8e4db7930a0e6be736457af494 (diff) | |
download | ffmpeg-f1618fd939be124555c98f453fc3a8f36e02fc37.tar.gz |
Add 'reservoir' flag to lavc's flags2 controlling whether or not codes may
utilize a bit reservoir. Also, make the lame encoder utilize this flag.
patch by Paul Kelly, paul a stjohnspoint d co d uk
Originally committed as revision 11903 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libmp3lame.c')
-rw-r--r-- | libavcodec/libmp3lame.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c index e7671d08ea..6fbf2e23d3 100644 --- a/libavcodec/libmp3lame.c +++ b/libavcodec/libmp3lame.c @@ -61,6 +61,7 @@ static int MP3lame_encode_init(AVCodecContext *avctx) lame_set_VBR_q(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); if (lame_init_params(s->gfp) < 0) goto err_close; |