using memmove() instead of memcpy() when necessary
authorJean-Marc Valin <jean-marc.valin@octasic.com>
Thu, 3 Mar 2011 22:31:11 +0000 (17:31 -0500)
committerJean-Marc Valin <jean-marc.valin@octasic.com>
Thu, 3 Mar 2011 22:31:11 +0000 (17:31 -0500)
src_common/SKP_Silk_NSQ.c

index 397c8cf..90ea49b 100644 (file)
@@ -152,8 +152,8 @@ void SKP_Silk_NSQ(
     NSQ->lagPrev = pitchL[ psEncC->nb_subfr - 1 ];\r
 \r
     /* Save quantized speech and noise shaping signals */\r
-    SKP_memcpy( NSQ->xq,           &NSQ->xq[           psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( SKP_int16 ) );\r
-    SKP_memcpy( NSQ->sLTP_shp_Q10, &NSQ->sLTP_shp_Q10[ psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( SKP_int32 ) );\r
+    SKP_memmove( NSQ->xq,           &NSQ->xq[           psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( SKP_int16 ) );\r
+    SKP_memmove( NSQ->sLTP_shp_Q10, &NSQ->sLTP_shp_Q10[ psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( SKP_int32 ) );\r
 \r
 #ifdef SAVE_ALL_INTERNAL_DATA\r
     DEBUG_STORE_DATA( xq.dat,       &pxq[ -psEncC->frame_length ],       psEncC->frame_length * sizeof( SKP_int16 ) );\r