summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/ts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ts.c b/tools/ts.c
index 4ee80abb..4706a770 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.20 2010-02-03 10:09:35 phintuka Exp $
+ * $Id: ts.c,v 1.21 2010-03-16 18:58:56 rofafor Exp $
*
*/
@@ -588,7 +588,7 @@ static size_t ts_add_payload(ts_state_t *ts, const uint8_t *data)
memmove(ts->buf, ts->buf+TS_SIZE, ts->buf_len);
}
- size_t len = ts_PAYLOAD_SIZE(data);
+ ssize_t len = ts_PAYLOAD_SIZE(data);
if (len > 0) {
memcpy(ts->buf + ts->buf_len, ts_GET_PAYLOAD(data), len);
ts->buf_len += len;