Skip to content
  • Timothy B. Terriberry's avatar
    Subtract one from dif in the range decoder. · 8c23a3a0
    Timothy B. Terriberry authored and Jean-Marc Valin's avatar Jean-Marc Valin committed
    It turns out to be more convenient to store dif=low+rng-code-1
     instead of dif=low+rng-code.
    This gets rid of a decrement in the normal decode path, replaces a
     decrement and an "and" in the normalization loop with a single
     add, and makes it clear that the new ec_dec_cdf() will not result
     in an infinite loop.
    This does not change the bitstream.
    8c23a3a0