Skip to content
  • Timothy B. Terriberry's avatar
    Change qb cap to prevent side-fold collapses. · 9b34bd83
    Timothy B. Terriberry authored and Jean-Marc Valin's avatar Jean-Marc Valin committed
    Previously, in a stereo split with itheta==16384, but without
     enough bits left over to actually code a pulse, the target band
     would completely collapse, because the mid gain would be zero and
     we don't fold the side.
    This changes the limit to ensure that we never set qn>1 unless we
     know we'll have enough bits for at least one pulse.
    This should eliminate the last possible whole-band collapse.
    9b34bd83