Mercurial > libavcodec.hg
comparison libmp3lame.c @ 6346:11a44fc273a5 libavcodec
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
author | andoma |
---|---|
date | Mon, 11 Feb 2008 08:01:07 +0000 |
parents | 87d908152cb7 |
children | 48759bfbd073 |
comparison
equal
deleted
inserted
replaced
6345:0b7fbd57c489 | 6346:11a44fc273a5 |
---|---|
59 lame_set_brate(s->gfp, 0); | 59 lame_set_brate(s->gfp, 0); |
60 lame_set_VBR(s->gfp, vbr_default); | 60 lame_set_VBR(s->gfp, vbr_default); |
61 lame_set_VBR_q(s->gfp, avctx->global_quality / (float)FF_QP2LAMBDA); | 61 lame_set_VBR_q(s->gfp, avctx->global_quality / (float)FF_QP2LAMBDA); |
62 } | 62 } |
63 lame_set_bWriteVbrTag(s->gfp,0); | 63 lame_set_bWriteVbrTag(s->gfp,0); |
64 lame_set_disable_reservoir(s->gfp, avctx->flags2 & CODEC_FLAG2_BIT_RESERVOIR ? 0 : 1); | |
64 if (lame_init_params(s->gfp) < 0) | 65 if (lame_init_params(s->gfp) < 0) |
65 goto err_close; | 66 goto err_close; |
66 | 67 |
67 avctx->frame_size = lame_get_framesize(s->gfp); | 68 avctx->frame_size = lame_get_framesize(s->gfp); |
68 | 69 |