Changeset 5045 for pjproject/trunk/pjmedia/src/pjmedia-codec/openh264.cpp
- Timestamp:
- Apr 6, 2015 6:13:51 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 */
Note: See TracChangeset
for help on using the changeset viewer.