[FFmpeg-soc] [soc]: r4161 - amr/amrnbfloatdec.c

kmalaussene subversion at mplayerhq.hu
Wed Mar 4 20:52:49 CET 2009


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);
 }
 



More information about the FFmpeg-soc mailing list