diff options
author | 2009-05-13 02:58:57 +0000 | |
---|---|---|
committer | 2009-05-13 02:58:57 +0000 | |
commit | 6e9cbdc10448203e7c8b2de41447442fcc9f7bae (patch) | |
tree | 0ed465592509105fdbeab27fc12ddbb2e3590aa5 /stream/realrtsp/sdpplin.c | |
parent | eafe5b7517bbf408ae1ffc936a3abe2313c3b334 (diff) |
whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/realrtsp/sdpplin.c')
-rw-r--r-- | stream/realrtsp/sdpplin.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/stream/realrtsp/sdpplin.c b/stream/realrtsp/sdpplin.c index 80dc49edaa..c4104fb00c 100644 --- a/stream/realrtsp/sdpplin.c +++ b/stream/realrtsp/sdpplin.c @@ -25,7 +25,7 @@ * sdp/sdpplin parser. * */ - + #include "config.h" #include "stream/librtsp/rtsp.h" #include "sdpplin.h" @@ -62,7 +62,7 @@ static char *b64_decode(const char *in, char *out, int *size) dtable['='] = 0; k=0; - + /*CONSTANTCONDITION*/ for (j=0; j<strlen(in); j+=4) { @@ -121,7 +121,7 @@ static int filter(const char *in, const char *filter, char **out) { return len-flen; } - + return 0; } static sdpplin_stream_t *sdpplin_parse_stream(char **data) { @@ -131,7 +131,7 @@ static sdpplin_stream_t *sdpplin_parse_stream(char **data) { char *decoded=xbuffer_init(32); int handled; int got_mimetype; - + if (filter(*data, "m=", &buf)) { desc->id = strdup(buf); } else @@ -156,7 +156,7 @@ static sdpplin_stream_t *sdpplin_parse_stream(char **data) { #endif handled=0; - + if(filter(*data,"a=control:streamid=",&buf)) { desc->stream_id=atoi(buf); handled=1; @@ -178,7 +178,7 @@ static sdpplin_stream_t *sdpplin_parse_stream(char **data) { handled=1; *data=nl(*data); } - + if(filter(*data,"a=StartTime:integer;",&buf)) { desc->start_time=atoi(buf); handled=1; @@ -222,7 +222,7 @@ static sdpplin_stream_t *sdpplin_parse_stream(char **data) { 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 @@ static sdpplin_stream_t *sdpplin_parse_stream(char **data) { xbuffer_free(buf); xbuffer_free(decoded); - + return desc; } @@ -273,7 +273,7 @@ sdpplin_t *sdpplin_parse(char *data) { #endif handled=0; - + if (filter(data, "m=", &buf)) { sdpplin_stream_t *stream=sdpplin_parse_stream(&data); #ifdef LOG @@ -306,28 +306,28 @@ sdpplin_t *sdpplin_parse(char *data) { 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 @@ sdpplin_t *sdpplin_parse(char *data) { xbuffer_free(buf); xbuffer_free(decoded); - + return desc; } |