[soc]: r4161 - amr/amrnbfloatdec.c
Author: kmalaussene Date: Wed Mar 4 20:52:49 2009 New Revision: 4161 Log: Use memmove instead of assignements. Modified: amr/amrnbfloatdec.c Modified: amr/amrnbfloatdec.c ============================================================================== --- amr/amrnbfloatdec.c Wed Mar 4 20:02:04 2009 (r4160) +++ amr/amrnbfloatdec.c Wed Mar 4 20:52:49 2009 (r4161) @@ -719,9 +719,7 @@ static void decode_gains(AMRContext *p, * fixed_gain_prediction(p->fixed_vector, p->prediction_error, mode); // update quantified prediction error energy history - p->prediction_error[0] = p->prediction_error[1]; - p->prediction_error[1] = p->prediction_error[2]; - p->prediction_error[2] = p->prediction_error[3]; + memmove(&p->prediction_error[0], &p->prediction_error[1], 3 * sizeof(p->prediction_error[0])); p->prediction_error[3] = 20.0*log10f(fixed_gain_factor); }
On Wed, Mar 04, 2009 at 08:52:49PM +0100, kmalaussene wrote:
Log: Use memmove instead of assignements.
assigNMents Diego
participants (2)
-
Diego Biurrun -
kmalaussene