[FFmpeg-cvslog] r24748 - trunk/libavformat/rtpenc_xiph.c
mstorsjo
subversion
Mon Aug 9 12:23:26 CEST 2010
Author: mstorsjo
Date: Mon Aug 9 12:23:26 2010
New Revision: 24748
Log:
rtpenc_xiph: Don't needlessly cast pointers to integers
Modified:
trunk/libavformat/rtpenc_xiph.c
Modified: trunk/libavformat/rtpenc_xiph.c
==============================================================================
--- trunk/libavformat/rtpenc_xiph.c Mon Aug 9 12:05:33 2010 (r24747)
+++ trunk/libavformat/rtpenc_xiph.c Mon Aug 9 12:23:26 2010 (r24748)
@@ -68,8 +68,8 @@ void ff_rtp_send_xiph(AVFormatContext *s
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) ||
More information about the ffmpeg-cvslog
mailing list