Mercurial > libavformat.hg
diff rtpenc_xiph.c @ 6354:c0bd24801ac1 libavformat
rtpenc_xiph: Don't needlessly cast pointers to integers
author | mstorsjo |
---|---|
date | Mon, 09 Aug 2010 10:23:26 +0000 |
parents | 93c7a56fa912 |
children | 3aa7765383b5 |
line wrap: on
line diff
--- a/rtpenc_xiph.c Mon Aug 09 10:05:33 2010 +0000 +++ b/rtpenc_xiph.c Mon Aug 09 10:23:26 2010 +0000 @@ -68,8 +68,8 @@ frag = size <= max_pkt_size ? 0 : 1; if (!frag && !xdt) { // do we have a whole frame of raw data? - unsigned end_ptr = (unsigned)s->buf + 6 + max_pkt_size; // what we're allowed to write - unsigned ptr = (unsigned)s->buf_ptr + 2 + size; // what we're going to write + uint8_t *end_ptr = s->buf + 6 + max_pkt_size; // what we're allowed to write + uint8_t *ptr = s->buf_ptr + 2 + size; // what we're going to write int remaining = end_ptr - ptr; if ((s->num_frames > 0 && remaining < 0) ||