Ignore:
Timestamp:
Apr 6, 2015 6:13:51 AM (9 years ago)
Author:
nanang
Message:

Misc (re #1782): Fixed various compile warnings on MSVC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/openh264.cpp

    r5015 r5045  
    195195                                        &h264_name, 
    196196                                        &pjmedia_vid_codec_h264_match_sdp); 
    197     pj_assert(status == PJ_SUCCESS); 
     197    if (status != PJ_SUCCESS) 
     198        goto on_error; 
    198199 
    199200    /* Register codec factory to codec manager. */ 
    200201    status = pjmedia_vid_codec_mgr_register_factory(mgr, 
    201202                                                    &oh264_factory.base); 
     203    if (status != PJ_SUCCESS) 
     204        goto on_error; 
    202205 
    203206    PJ_LOG(4,(THIS_FILE, "OpenH264 codec initialized")); 
     
    373376    PJ_ASSERT_RETURN(codec, PJ_EINVAL); 
    374377 
     378    PJ_UNUSED_ARG(factory); 
     379 
    375380    oh264_data = (oh264_codec_data*) codec->codec_data; 
    376381    if (oh264_data->enc) { 
     
    471476    eprm.iPicWidth                      = param->enc_fmt.det.vid.size.w; 
    472477    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 / 
    474480                                           param->enc_fmt.det.vid.fps.denum); 
    475     eprm.uiFrameToBeCoded               = -1; 
     481    eprm.uiFrameToBeCoded               = (unsigned int) -1; 
    476482    eprm.iTemporalLayerNum              = 1; 
    477483    eprm.uiIntraPeriod                  = 0; /* I-Frame interval in frames */ 
Note: See TracChangeset for help on using the changeset viewer.