summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc_xiph.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-08-09 10:23:26 +0000
committerMartin Storsjö <martin@martin.st>2010-08-09 10:23:26 +0000
commit62c7e2c3364c232e04b694641d4a0611c700ee56 (patch)
treefe40c000533828d1e87e1220fbbfbf68deebb0ae /libavformat/rtpenc_xiph.c
parent311baee795009809daff8a0dd0b27225dcf819ae (diff)
rtpenc_xiph: Don't needlessly cast pointers to integers
Originally committed as revision 24748 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpenc_xiph.c')
-rw-r--r--libavformat/rtpenc_xiph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtpenc_xiph.c b/libavformat/rtpenc_xiph.c
index 4899abb13e..82de5f8faf 100644
--- a/libavformat/rtpenc_xiph.c
+++ b/libavformat/rtpenc_xiph.c
@@ -68,8 +68,8 @@ void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size)
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) ||