- Timestamp:
- Apr 6, 2011 1:55:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjsip/src/pjsua-lib/pjsua_media.c
r3487 r3500 3758 3758 3759 3759 for (i=0; i<count; ++i) { 3760 pj_bzero(&id[i], sizeof(pjsua_codec_info)); 3761 3760 3762 pjmedia_codec_info_to_id(&info[i], id[i].buf_, sizeof(id[i].buf_)); 3761 3763 id[i].codec_id = pj_str(id[i].buf_); … … 3875 3877 for (i=0, j=0; i<count && j<*p_count; ++i) { 3876 3878 if (info[i].has_rtp_pack) { 3879 pj_bzero(&id[j], sizeof(pjsua_codec_info)); 3880 3877 3881 pjmedia_vid_codec_info_to_id(&info[i], id[j].buf_, sizeof(id[j].buf_)); 3878 3882 id[j].codec_id = pj_str(id[j].buf_); 3879 3883 id[j].priority = (pj_uint8_t) prio[i]; 3884 3885 if (id[j].codec_id.slen < sizeof(id[j].buf_)) { 3886 id[j].desc.ptr = id[j].codec_id.ptr + id[j].codec_id.slen + 1; 3887 pj_strncpy(&id[j].desc, &info[i].encoding_desc, 3888 sizeof(id[j].buf_) - id[j].codec_id.slen - 1); 3889 } 3890 3880 3891 ++j; 3881 3892 }
Note: See TracChangeset
for help on using the changeset viewer.