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

superdump subversion at mplayerhq.hu
Mon Jul 14 00:29:07 CEST 2008


Author: superdump
Date: Mon Jul 14 00:29:07 2008
New Revision: 2777

Log:
Copy last LP_FILTER_ORDER samples of the subframe to use in the next subframe


Modified:
   amr/amrnbfloatdec.c

Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c	(original)
+++ amr/amrnbfloatdec.c	Mon Jul 14 00:29:07 2008
@@ -1045,8 +1045,8 @@ static void update_state(AMRContext *p) 
     p->ir_filter_strength[0] = p->ir_filter_strength[1];
 
     // update speech sample history
-    memmove(&p->samples_in[0], &p->samples_in[LP_FILTER_ORDER],
-        AMR_SUBFRAME_SIZE*sizeof(float));
+    memmove(&p->samples_in[0], &p->samples_in[AMR_SUBFRAME_SIZE],
+        LP_FILTER_ORDER*sizeof(float));
 }
 
 /*** end of update functions ***/



More information about the FFmpeg-soc mailing list