summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/ts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/ts.c b/tools/ts.c
index 0f6e2576..3f898444 100644
--- a/tools/ts.c
+++ b/tools/ts.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: ts.c,v 1.14 2009-09-09 11:58:40 phintuka Exp $
+ * $Id: ts.c,v 1.15 2010-02-02 22:56:18 phintuka Exp $
*
*/
@@ -576,7 +576,7 @@ static int ts_add_payload(ts_state_t *ts, const uint8_t *data)
if (ts->buf_len >= ts->buf_size - TS_SIZE) {
LOGMSG("ts_add_payload: buffer full");
ts->buf_len -= TS_SIZE;
- memcpy(ts->buf, ts->buf+TS_SIZE, ts->buf_len);
+ memmove(ts->buf, ts->buf+TS_SIZE, ts->buf_len);
}
int len = ts_PAYLOAD_SIZE(data);
@@ -595,7 +595,7 @@ static void ts_skip_payload(ts_state_t *ts, unsigned int n)
{
if (n < ts->buf_len) {
ts->buf_len -= n;
- memcpy(ts->buf, ts->buf + n, ts->buf_len);
+ memmove(ts->buf, ts->buf + n, ts->buf_len);
} else {
ts->buf_len = 0;
}