diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2014-09-04 02:48:21 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2014-09-04 02:48:21 -0400 |
commit | da97db1ca1f92592af3534c9a2596da0e9a009ca (patch) | |
tree | dd6ee715289f7cc6393c0cc0d6b0aae0417ce8ef /src | |
parent | 648eb9adff253c1216a5430237cc8df30cce6751 (diff) | |
download | libopus-da97db1ca1f92592af3534c9a2596da0e9a009ca.tar.gz |
Fixes comments
Diffstat (limited to 'src')
-rw-r--r-- | src/opus_multistream_encoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opus_multistream_encoder.c b/src/opus_multistream_encoder.c index bdacff1a..3787194a 100644 --- a/src/opus_multistream_encoder.c +++ b/src/opus_multistream_encoder.c @@ -860,10 +860,10 @@ static int opus_multistream_encode_native opus_encoder_ctl(enc, OPUS_SET_ENERGY_MASK(bandLogE)); /* number of bytes left (+Toc) */ curr_max = max_data_bytes - tot_size; - /* Reserve three bytes for the last stream and four for the others */ + /* Reserve one byte for the last stream and two for the others */ curr_max -= IMAX(0,2*(st->layout.nb_streams-s-1)-1); curr_max = IMIN(curr_max,MS_FRAME_TMP); - /* Repacketizer will add one byte for self-delimited frames */ + /* Repacketizer will add one or two bytes for self-delimited frames */ if (s != st->layout.nb_streams-1) curr_max -= curr_max>253 ? 2 : 1; if (!vbr && s == st->layout.nb_streams-1) opus_encoder_ctl(enc, OPUS_SET_BITRATE(curr_max*(8*Fs/frame_size))); |