Account for redundancy signalling when computing st->silk_mode.maxBits
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 27 Oct 2016 04:11:26 +0000 (00:11 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 27 Oct 2016 04:11:26 +0000 (00:11 -0400)
commit6d0628493550f4ef0eaecf3058a502404bc6dca2
tree8409cae6214606d1e8b142fd6e5d98affd0cb957
parent4667b6992a738683e4b7d6667b9850ca0ee5fd7b
Account for redundancy signalling when computing st->silk_mode.maxBits

Without that, we could bust the budget and end up with the
if (ec_tell(&enc) <= 8*nb_compr_bytes)
being false, followed by an assert failure later.
src/opus_encoder.c