aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-02-19 22:07:48 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-02-19 22:07:48 +0000
commita56dcc57931fd19ef0d567ac60bc3973103f9890 (patch)
tree8aa00e216acaf9a9c40b9365b3861fc0fc076a39 /libavformat
parenta1fc4d4aa8fec78711f67087a3dfe6c02fb2b9cb (diff)
downloadffmpeg-a56dcc57931fd19ef0d567ac60bc3973103f9890.tar.gz
Add some const, fixes warnings:
rtpenc_h264.c:69: warning: assignment discards qualifiers from pointer target type rtpenc_h264.c:74: warning: assignment discards qualifiers from pointer target type Originally committed as revision 12152 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtp_h264.h2
-rw-r--r--libavformat/rtpenc_h264.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/rtp_h264.h b/libavformat/rtp_h264.h
index f5acfc8947..0f23e525cc 100644
--- a/libavformat/rtp_h264.h
+++ b/libavformat/rtp_h264.h
@@ -25,6 +25,6 @@
#include "rtp_internal.h"
extern RTPDynamicProtocolHandler ff_h264_dynamic_handler;
-void ff_rtp_send_h264(AVFormatContext *s1, uint8_t *buf1, int size);
+void ff_rtp_send_h264(AVFormatContext *s1, const uint8_t *buf1, int size);
#endif /* FFMPEG_RTP_H264_H */
diff --git a/libavformat/rtpenc_h264.c b/libavformat/rtpenc_h264.c
index cf054d752b..95d5fff81f 100644
--- a/libavformat/rtpenc_h264.c
+++ b/libavformat/rtpenc_h264.c
@@ -60,15 +60,15 @@ static void nal_send(AVFormatContext *s1, const uint8_t *buf, int size, int last
}
}
-void ff_rtp_send_h264(AVFormatContext *s1, uint8_t *buf1, int size)
+void ff_rtp_send_h264(AVFormatContext *s1, const uint8_t *buf1, int size)
{
- uint8_t *r;
+ const uint8_t *r;
RTPDemuxContext *s = s1->priv_data;
s->timestamp = s->cur_timestamp;
r = ff_avc_find_startcode(buf1, buf1 + size);
while (r < buf1 + size) {
- uint8_t *r1;
+ const uint8_t *r1;
while(!*(r++));
r1 = ff_avc_find_startcode(r, buf1 + size);