jitter buffer: wrong use of memcpy changed to memmove
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Thu, 29 Nov 2007 08:10:27 +0000 (08:10 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Thu, 29 Nov 2007 08:10:27 +0000 (08:10 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@14248 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/jitter.c

index b7f8240..6a32e75 100644 (file)
@@ -120,8 +120,8 @@ static void tb_add(struct TimingBuffer *tb, spx_int16_t timing)
       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;