From 86b9bead09fd3c94a1462143e261e320d8c8c8cf Mon Sep 17 00:00:00 2001 From: rofafor Date: Tue, 16 Mar 2010 18:58:56 +0000 Subject: Fixed a signess bug. --- tools/ts.c | 4 ++-- 1 file 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; -- cgit v1.2.3