Define CELT bitrate=-1 as "unlimited" (i.e. all bytes given)

This commit is contained in:
Jean-Marc Valin 2011-08-15 22:37:11 -04:00
parent 51ac8e68e6
commit 66ff26f356
2 changed files with 6 additions and 5 deletions

View file

@ -479,7 +479,7 @@ int opus_encode(OpusEncoder *st, const opus_int16 *pcm, int frame_size,
if (st->mode != MODE_SILK_ONLY)
{
celt_encoder_ctl(celt_enc, CELT_SET_VBR(0));
celt_encoder_ctl(celt_enc, CELT_SET_BITRATE(510000));
celt_encoder_ctl(celt_enc, CELT_SET_BITRATE(-1));
if (st->prev_mode == MODE_SILK_ONLY)
{
unsigned char dummy[10];