diff 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
line wrap: on
line diff
--- a/libmp3lame.c	Sun Feb 10 01:45:42 2008 +0000
+++ b/libmp3lame.c	Mon Feb 11 08:01:07 2008 +0000
@@ -61,6 +61,7 @@
         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;