[xiph-commits] r14248 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Thu Nov 29 00:10:29 PST 2007


Author: jm
Date: 2007-11-29 00:10:27 -0800 (Thu, 29 Nov 2007)
New Revision: 14248

Modified:
   trunk/speex/libspeex/jitter.c
Log:
jitter buffer: wrong use of memcpy changed to memmove


Modified: trunk/speex/libspeex/jitter.c
===================================================================
--- trunk/speex/libspeex/jitter.c	2007-11-29 02:06:16 UTC (rev 14247)
+++ trunk/speex/libspeex/jitter.c	2007-11-29 08:10:27 UTC (rev 14248)
@@ -120,8 +120,8 @@
       int move_size = tb->filled-pos;
       if (tb->filled == MAX_TIMINGS)
          move_size -= 1;
-      SPEEX_COPY(&tb->timing[pos+1], &tb->timing[pos], move_size);
-      SPEEX_COPY(&tb->counts[pos+1], &tb->counts[pos], move_size);
+      SPEEX_MOVE(&tb->timing[pos+1], &tb->timing[pos], move_size);
+      SPEEX_MOVE(&tb->counts[pos+1], &tb->counts[pos], move_size);
    }
    /* Insert */
    tb->timing[pos] = timing;



More information about the commits mailing list