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

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
parent 754bf3d8
......@@ -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);
......
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