diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-02-19 21:58:54 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-02-19 21:58:54 +0000 |
commit | a1fc4d4aa8fec78711f67087a3dfe6c02fb2b9cb (patch) | |
tree | 34895dd622fcb89b22da142b7eb2562c83e1770d | |
parent | 754bf3d8a1078fef4be218b27a11c9e634220c06 (diff) | |
download | ffmpeg-a1fc4d4aa8fec78711f67087a3dfe6c02fb2b9cb.tar.gz |
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
-rw-r--r-- | libavformat/sdp.c | 4 |
1 files 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); |