diff options
author | rofafor <rofafor> | 2010-03-16 18:58:56 +0000 |
---|---|---|
committer | rofafor <rofafor> | 2010-03-16 18:58:56 +0000 |
commit | 86b9bead09fd3c94a1462143e261e320d8c8c8cf (patch) | |
tree | 0710b3225bc0d6345866352a4689eebfd957adfc | |
parent | 052ffa8e4d15925ab5d6ad570e94bec250d705b2 (diff) | |
download | xineliboutput-86b9bead09fd3c94a1462143e261e320d8c8c8cf.tar.gz xineliboutput-86b9bead09fd3c94a1462143e261e320d8c8c8cf.tar.bz2 |
Fixed a signess bug.
-rw-r--r-- | tools/ts.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |