Prevent heap corruption when resampling 8-bit audio.