Changeset 2072 for pjproject


Ignore:
Timestamp:
Jun 27, 2008 10:45:40 AM (16 years ago)
Author:
bennylp
Message:

Fixed extra '/' character when encoding stereo codecs (thanks Gianluca Crucillà)

File:
1 edited

Legend:

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

    r2039 r2072  
    411411            pj_assert(codec_info->channel_cnt < 10); 
    412412 
    413             tmp_param[0] = '/'; 
    414             tmp_param[1] = (char)('0' + codec_info->channel_cnt); 
     413            tmp_param[0] = (char)('0' + codec_info->channel_cnt); 
    415414 
    416415            rtpmap.param.ptr = tmp_param; 
    417             rtpmap.param.slen = 2; 
     416            rtpmap.param.slen = 1; 
    418417 
    419418        } else { 
Note: See TracChangeset for help on using the changeset viewer.