Changeset 5045 for pjproject/trunk
- Timestamp:
- Apr 6, 2015 6:13:51 AM (10 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/opencore_amr.c
r4487 r5045 569 569 idx = (attr->info.clock_rate <= 8000? IDX_AMR_NB: IDX_AMR_WB); 570 570 enc_mode = pjmedia_codec_amr_get_mode(attr->info.avg_bps); 571 pj_assert(enc_mode >= 0 && enc_mode < amr_bitrates_size[idx]);571 pj_assert(enc_mode >= 0 && (unsigned)enc_mode < amr_bitrates_size[idx]); 572 572 573 573 /* Check octet-align */ … … 603 603 l = pj_strlen(&attr->setting.enc_fmtp.param[i].val); 604 604 while (l--) { 605 if (*p>='0' && *p<=('0'+amr_bitrates_size[idx]-1)) {605 if (*p>='0' && (unsigned)*p<=('0'+amr_bitrates_size[idx]-1)) { 606 606 pj_int8_t tmp = *p - '0' - enc_mode; 607 607 … … 898 898 &input->timestamp); 899 899 if (PJMEDIA_CODEC_MAX_SILENCE_PERIOD == -1 || 900 dtx_duration < PJMEDIA_CODEC_MAX_SILENCE_PERIOD*901 amr_data->clock_rate/1000)900 dtx_duration < (int)(PJMEDIA_CODEC_MAX_SILENCE_PERIOD* 901 amr_data->clock_rate/1000)) 902 902 { 903 903 output->size = 0; -
pjproject/trunk/pjmedia/src/pjmedia-codec/openh264.cpp
r5015 r5045 195 195 &h264_name, 196 196 &pjmedia_vid_codec_h264_match_sdp); 197 pj_assert(status == PJ_SUCCESS); 197 if (status != PJ_SUCCESS) 198 goto on_error; 198 199 199 200 /* Register codec factory to codec manager. */ 200 201 status = pjmedia_vid_codec_mgr_register_factory(mgr, 201 202 &oh264_factory.base); 203 if (status != PJ_SUCCESS) 204 goto on_error; 202 205 203 206 PJ_LOG(4,(THIS_FILE, "OpenH264 codec initialized")); … … 373 376 PJ_ASSERT_RETURN(codec, PJ_EINVAL); 374 377 378 PJ_UNUSED_ARG(factory); 379 375 380 oh264_data = (oh264_codec_data*) codec->codec_data; 376 381 if (oh264_data->enc) { … … 471 476 eprm.iPicWidth = param->enc_fmt.det.vid.size.w; 472 477 eprm.iPicHeight = param->enc_fmt.det.vid.size.h; 473 eprm.fMaxFrameRate = (param->enc_fmt.det.vid.fps.num * 1.0 / 478 eprm.fMaxFrameRate = (param->enc_fmt.det.vid.fps.num * 479 1.0f / 474 480 param->enc_fmt.det.vid.fps.denum); 475 eprm.uiFrameToBeCoded = -1;481 eprm.uiFrameToBeCoded = (unsigned int) -1; 476 482 eprm.iTemporalLayerNum = 1; 477 483 eprm.uiIntraPeriod = 0; /* I-Frame interval in frames */ -
pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c
r5040 r5045 1509 1509 1510 1510 /* Register customized SDP format negotiation callback function. */ 1511 PJ_DE CL(pj_status_t) pjmedia_sdp_neg_register_fmt_match_cb(1511 PJ_DEF(pj_status_t) pjmedia_sdp_neg_register_fmt_match_cb( 1512 1512 const pj_str_t *fmt_name, 1513 1513 pjmedia_sdp_neg_fmt_match_cb cb) -
pjproject/trunk/pjnath/src/pjnath/stun_transaction.c
r4983 r5045 146 146 */ 147 147 /* pj_stun_client_tsx_stop(tsx); */ 148 PJ_UNUSED_ARG(tsx); 148 149 return PJ_SUCCESS; 149 150 } -
pjproject/trunk/pjsip/src/pjsua2/media.cpp
r5035 r5045 1024 1024 1025 1025 PJSUA2_CHECK_EXPR( pjsua_vid_win_get_info(winId, &pj_vwi) ); 1026 vwi.isNative = pj_vwi.is_native;1026 vwi.isNative = (pj_vwi.is_native != PJ_FALSE); 1027 1027 vwi.winHandle.type = pj_vwi.hwnd.type; 1028 1028 vwi.winHandle.handle.window = pj_vwi.hwnd.info.window; 1029 1029 vwi.renderDeviceId = pj_vwi.rdr_dev; 1030 vwi.show = pj_vwi.show;1030 vwi.show = (pj_vwi.show != PJ_FALSE); 1031 1031 vwi.pos.x = pj_vwi.pos.x; 1032 1032 vwi.pos.y = pj_vwi.pos.y;
Note: See TracChangeset
for help on using the changeset viewer.