]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Add some const, fixes warnings:
authorreimar <reimar@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 19 Feb 2008 22:07:48 +0000 (22:07 +0000)
committerreimar <reimar@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 19 Feb 2008 22:07:48 +0000 (22:07 +0000)
rtpenc_h264.c:69: warning: assignment discards qualifiers from pointer target type
rtpenc_h264.c:74: warning: assignment discards qualifiers from pointer target type

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12152 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/rtp_h264.h
libavformat/rtpenc_h264.c

index f5acfc894724131193d1722a202c24e051106248..0f23e525cc3a359b1ea628e078c76e293fd03019 100644 (file)
@@ -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 */
index cf054d752b247c31e838e8a8ed39c1136382d128..95d5fff81fc0056b0f2a8f31725ed6d48a88f1c7 100644 (file)
@@ -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);