Skip to content
  • Timothy B. Terriberry's avatar
    Rebalance N=1 allocations during interp_bits2pulses(). · 66c5ab4f
    Timothy B. Terriberry authored and Jean-Marc Valin's avatar Jean-Marc Valin committed
    Excess fractions of a bit can't be re-used in N=1 bands during
     quant_all_bands() because there's no shape, only a sign bit.
    This meant that all the fractional bits in these bands accumulated,
     often up to 5 or 6 bits for stereo, until the first band with N>1,
     where they were dumped all at once.
    This patch moves the rebalancing for N=1 bands to
     interp_bits2pulses() instead, where excess bits still have a
     chance to be moved into fine energy.
    66c5ab4f