Ignore:
Timestamp:
Sep 20, 2017 4:34:27 AM (7 years ago)
Author:
riza
Message:

Re #1994(misc): Fixed various warnings on VS2015.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/media.cpp

    r5645 r5654  
    15921592    param.info.clock_rate = info.clockRate; 
    15931593    param.info.channel_cnt = info.channelCnt; 
    1594     param.info.avg_bps = info.avgBps; 
    1595     param.info.max_bps= info.maxBps; 
     1594    param.info.avg_bps = (pj_uint32_t)info.avgBps; 
     1595    param.info.max_bps= (pj_uint32_t)info.maxBps; 
    15961596    param.info.max_rx_frame_size = info.maxRxFrameSize; 
    1597     param.info.frm_ptime = info.frameLen; 
    1598     param.info.pcm_bits_per_sample = info.pcmBitsPerSample; 
    1599     param.info.pt = info.pt; 
     1597    param.info.frm_ptime = (pj_uint16_t)info.frameLen; 
     1598    param.info.pcm_bits_per_sample = (pj_uint8_t)info.pcmBitsPerSample; 
     1599    param.info.pt = (pj_uint8_t)info.pt; 
    16001600    param.info.fmt_id = info.fmtId; 
    16011601 
    16021602    /* setting part. */ 
    1603     param.setting.frm_per_pkt = setting.frmPerPkt; 
     1603    param.setting.frm_per_pkt = (pj_uint8_t)setting.frmPerPkt; 
    16041604    param.setting.vad = setting.vad; 
    16051605    param.setting.cng = setting.cng; 
Note: See TracChangeset for help on using the changeset viewer.