Changeset 637 for pjproject/trunk/pjmedia/src/pjmedia/endpoint.c
- Timestamp:
- Jul 31, 2006 3:19:36 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/endpoint.c
r635 r637 347 347 #endif 348 348 349 /* Add format and rtpmapfor each codec */349 /* Add format, rtpmap, and fmtp (when applicable) for each codec */ 350 350 for (i=0; i<endpt->codec_mgr.codec_cnt; ++i) { 351 351 … … 354 354 char tmp_param[3]; 355 355 pjmedia_sdp_attr *attr; 356 pjmedia_codec_param codec_param; 356 357 pj_str_t *fmt; 357 358 … … 360 361 361 362 codec_info = &endpt->codec_mgr.codec_desc[i].info; 363 pjmedia_codec_mgr_get_default_param(&endpt->codec_mgr, codec_info, 364 &codec_param); 362 365 fmt = &m->desc.fmt[m->desc.fmt_count++]; 363 366 … … 391 394 m->attr[m->attr_count++] = attr; 392 395 396 /* Add fmtp mode where applicable */ 397 if (codec_param.setting.dec_fmtp_mode != 0) { 398 const pj_str_t fmtp = { "fmtp", 4 }; 399 attr = pj_pool_zalloc(pool, sizeof(pjmedia_sdp_attr)); 400 401 attr->name = fmtp; 402 attr->value.ptr = pj_pool_alloc(pool, 32); 403 attr->value.slen = 404 pj_ansi_snprintf( attr->value.ptr, 32, 405 ":%d mode=%d", 406 codec_info->pt, 407 codec_param.setting.dec_fmtp_mode); 408 m->attr[m->attr_count++] = attr; 409 } 393 410 } 394 411
Note: See TracChangeset
for help on using the changeset viewer.