1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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
This commit is contained in:
Reimar Döffinger 2008-02-19 21:58:54 +00:00
parent 754bf3d8a1
commit a1fc4d4aa8

View File

@ -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);