Commit a56dcc57 authored by Reimar Döffinger's avatar Reimar Döffinger

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
parent a1fc4d4a
...@@ -25,6 +25,6 @@ ...@@ -25,6 +25,6 @@
#include "rtp_internal.h" #include "rtp_internal.h"
extern RTPDynamicProtocolHandler ff_h264_dynamic_handler; 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 */ #endif /* FFMPEG_RTP_H264_H */
...@@ -60,15 +60,15 @@ static void nal_send(AVFormatContext *s1, const uint8_t *buf, int size, int last ...@@ -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; RTPDemuxContext *s = s1->priv_data;
s->timestamp = s->cur_timestamp; s->timestamp = s->cur_timestamp;
r = ff_avc_find_startcode(buf1, buf1 + size); r = ff_avc_find_startcode(buf1, buf1 + size);
while (r < buf1 + size) { while (r < buf1 + size) {
uint8_t *r1; const uint8_t *r1;
while(!*(r++)); while(!*(r++));
r1 = ff_avc_find_startcode(r, buf1 + size); r1 = ff_avc_find_startcode(r, buf1 + size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment