More ticket #64 fix: allow whitespace after SDP media format

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@901 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2007-01-23 15:30:31 +00:00
parent b7c7047ad3
commit 8963f239f5
1 changed files with 5 additions and 0 deletions

View File

@ -938,6 +938,11 @@ static void parse_media(pj_scanner *scanner, pjmedia_sdp_media *med,
med->desc.fmt_count = 0;
while (*scanner->curptr == ' ') {
pj_scan_get_char(scanner);
/* Check again for the end of the line */
if ((*scanner->curptr == '\r') || (*scanner->curptr == '\n'))
break;
pj_scan_get(scanner, &cs_token, &med->desc.fmt[med->desc.fmt_count++]);
}