Changeset 2299 for pjproject


Ignore:
Timestamp:
Sep 19, 2008 9:18:23 PM (16 years ago)
Author:
nanang
Message:

Fixed pjmedia session bug in getting channel count from SDP for static payload.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/session.c

    r2236 r2299  
    435435             */ 
    436436            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); 
    447438            } else { 
    448439                si->fmt.channel_cnt = 1; 
Note: See TracChangeset for help on using the changeset viewer.