[FFmpeg-soc] [soc]: r4866 - amr/amrnbdec.c

cmcq subversion at mplayerhq.hu
Fri Jul 31 16:11:38 CEST 2009


Author: cmcq
Date: Fri Jul 31 16:11:38 2009
New Revision: 4866

Log:
Make use of ff_weighted_vector_sumf

Modified:
   amr/amrnbdec.c

Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c	Fri Jul 31 15:55:41 2009	(r4865)
+++ amr/amrnbdec.c	Fri Jul 31 16:11:38 2009	(r4866)
@@ -927,9 +927,8 @@ static int synthesis(AMRContext *p, floa
             p->pitch_vector[i] *= 0.25;
 
     // construct the excitation vector
-    for (i = 0; i < AMR_SUBFRAME_SIZE; i++)
-        excitation[i] = p->pitch_gain[4] * p->pitch_vector[i] +
-                        fixed_gain * fixed_vector[i];
+    ff_weighted_vector_sumf(excitation, p->pitch_vector, fixed_vector,
+                            p->pitch_gain[4], fixed_gain, AMR_SUBFRAME_SIZE);
 
     // if an overflow has been detected, pitch vector contribution emphasis and
     // adaptive gain control are skipped


More information about the FFmpeg-soc mailing list