- Timestamp:
- Sep 19, 2008 9:18:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/session.c
r2236 r2299 435 435 */ 436 436 if (si->type == PJMEDIA_TYPE_AUDIO && rtpmap->param.slen) { 437 438 if (rtpmap->param.slen == 2) { 439 si->fmt.channel_cnt = rtpmap->param.ptr[1] - '0'; 440 } else { 441 pj_str_t cnt; 442 cnt.ptr = rtpmap->param.ptr + 1; 443 cnt.slen = rtpmap->param.slen - 1; 444 si->fmt.channel_cnt = (unsigned) pj_strtoul(&cnt); 445 } 446 437 si->fmt.channel_cnt = (unsigned) pj_strtoul(&rtpmap->param); 447 438 } else { 448 439 si->fmt.channel_cnt = 1;
Note: See TracChangeset
for help on using the changeset viewer.