Mercurial > mplayer.hg
diff stream/realrtsp/sdpplin.c @ 29263:0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
author | diego |
---|---|
date | Wed, 13 May 2009 02:58:57 +0000 |
parents | e16088a911c1 |
children | c990a2cbfa8d |
line wrap: on
line diff
--- a/stream/realrtsp/sdpplin.c Tue May 12 19:25:35 2009 +0000 +++ b/stream/realrtsp/sdpplin.c Wed May 13 02:58:57 2009 +0000 @@ -25,7 +25,7 @@ * sdp/sdpplin parser. * */ - + #include "config.h" #include "stream/librtsp/rtsp.h" #include "sdpplin.h" @@ -62,7 +62,7 @@ dtable['='] = 0; k=0; - + /*CONSTANTCONDITION*/ for (j=0; j<strlen(in); j+=4) { @@ -121,7 +121,7 @@ return len-flen; } - + return 0; } static sdpplin_stream_t *sdpplin_parse_stream(char **data) { @@ -131,7 +131,7 @@ char *decoded=xbuffer_init(32); int handled; int got_mimetype; - + if (filter(*data, "m=", &buf)) { desc->id = strdup(buf); } else @@ -156,7 +156,7 @@ #endif handled=0; - + if(filter(*data,"a=control:streamid=",&buf)) { desc->stream_id=atoi(buf); handled=1; @@ -178,7 +178,7 @@ handled=1; *data=nl(*data); } - + if(filter(*data,"a=StartTime:integer;",&buf)) { desc->start_time=atoi(buf); handled=1; @@ -222,7 +222,7 @@ printf("mlti_data_size: %i\n", desc->mlti_data_size); #endif } - + if(filter(*data,"a=ASMRuleBook:string;",&buf)) { desc->asm_rule_book=strdup(buf); handled=1; @@ -250,7 +250,7 @@ xbuffer_free(buf); xbuffer_free(decoded); - + return desc; } @@ -273,7 +273,7 @@ #endif handled=0; - + if (filter(data, "m=", &buf)) { sdpplin_stream_t *stream=sdpplin_parse_stream(&data); #ifdef LOG @@ -306,28 +306,28 @@ handled=1; data=nl(data); } - + if(filter(data,"a=Author:buffer;",&buf)) { decoded=b64_decode(buf, decoded, &len); desc->author=strdup(decoded); handled=1; data=nl(data); } - + if(filter(data,"a=Copyright:buffer;",&buf)) { decoded=b64_decode(buf, decoded, &len); desc->copyright=strdup(decoded); handled=1; data=nl(data); } - + if(filter(data,"a=Abstract:buffer;",&buf)) { decoded=b64_decode(buf, decoded, &len); desc->abstract=strdup(decoded); handled=1; data=nl(data); } - + if(filter(data,"a=StreamCount:integer;",&buf)) { desc->stream_count=(unsigned int)atoi(buf); desc->stream=calloc(desc->stream_count, sizeof(sdpplin_stream_t*)); @@ -355,7 +355,7 @@ xbuffer_free(buf); xbuffer_free(decoded); - + return desc; }