Fixes the iLBC encoder to work with arbitrary input audio sample lengths. Reduces the number of array allocations and copies in the encoder and the decoder.