g726: pre-calculate the number of output samples.