[FFmpeg-soc] [soc]: r945 - qcelp/qcelpdec.c

reynaldo subversion at mplayerhq.hu
Sat Aug 18 03:50:20 CEST 2007


Author: reynaldo
Date: Sat Aug 18 03:50:20 2007
New Revision: 945

Log:
use memset instead of zero setting loops

Modified:
   qcelp/qcelpdec.c

Modified: qcelp/qcelpdec.c
==============================================================================
--- qcelp/qcelpdec.c	(original)
+++ qcelp/qcelpdec.c	Sat Aug 18 03:50:20 2007
@@ -90,11 +90,9 @@ static int qcelp_decode_init(AVCodecCont
 
     q->frame_num=0;
 
-    for(i=0; i<10; i++)
-        q->prev_lspf[i]=0.0;
-
-    for(i=0; i<144; i++)
-        q->pitchf_mem[i]=q->pitchp_mem[i]=0.0;
+    memset(q->prev_lspf , 0, 10 *sizeof(float));
+    memset(q->pitchf_mem, 0, 144*sizeof(float));
+    memset(q->pitchp_mem, 0, 144*sizeof(float));
 
     /**
      * Fill hammsinc table



More information about the FFmpeg-soc mailing list