Mercurial > libavformat.hg
changeset 3051:3ecfaa7d0f3b libavformat
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
author | reimar |
---|---|
date | Tue, 19 Feb 2008 21:58:54 +0000 |
parents | be4d4abb3eed |
children | 93cee0e79c5b |
files | sdp.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sdp.c Tue Feb 19 16:18:17 2008 +0000 +++ b/sdp.c Tue Feb 19 21:58:54 2008 +0000 @@ -96,7 +96,7 @@ 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 @@ 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);