Fix interpolation of the decoder buffer when it loops.