# HG changeset patch # User reimar # Date 1203458868 0 # Node ID 93cee0e79c5b47d1fd5a4da9348badecc419facc # Parent 3ecfaa7d0f3b2d49630be78275f3102405a128cd 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 diff -r 3ecfaa7d0f3b -r 93cee0e79c5b rtp_h264.h --- a/rtp_h264.h Tue Feb 19 21:58:54 2008 +0000 +++ b/rtp_h264.h Tue Feb 19 22:07:48 2008 +0000 @@ -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 -r 3ecfaa7d0f3b -r 93cee0e79c5b rtpenc_h264.c --- a/rtpenc_h264.c Tue Feb 19 21:58:54 2008 +0000 +++ b/rtpenc_h264.c Tue Feb 19 22:07:48 2008 +0000 @@ -60,15 +60,15 @@ } } -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);