From a1fc4d4aa8fec78711f67087a3dfe6c02fb2b9cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Tue, 19 Feb 2008 21:58:54 +0000 Subject: [PATCH] Missing const, fix warnings: sdp.c:115: warning: assignment discards qualifiers from pointer target type sdp.c:120: warning: assignment discards qualifiers from pointer target type Originally committed as revision 12151 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/sdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 0f01a7de43..3a71afcbeb 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -96,7 +96,7 @@ static int get_address(char *dest_addr, int size, int *ttl, const char *url) static char *extradata2psets(AVCodecContext *c) { char *psets, *p; - uint8_t *r; + const uint8_t *r; const char *pset_string = "; sprop-parameter-sets="; if (c->extradata_size > MAX_EXTRADATA_SIZE) { @@ -114,7 +114,7 @@ static char *extradata2psets(AVCodecContext *c) p = psets + strlen(pset_string); r = ff_avc_find_startcode(c->extradata, c->extradata + c->extradata_size); while (r < c->extradata + c->extradata_size) { - uint8_t *r1; + const uint8_t *r1; while (!*(r++)); r1 = ff_avc_find_startcode(r, c->extradata + c->extradata_size);