Ignore:
Timestamp:
Sep 25, 2017 2:58:42 AM (3 years ago)
Author:
riza
Message:

Re #1994(misc): Fix warning on VS2015 when enabling video, opus, webrtc ec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/opus.c

    r5374 r5659  
    458458                                         pjmedia_codec_param *attr ) 
    459459{ 
     460    PJ_UNUSED_ARG(factory); 
    460461    TRACE_((THIS_FILE, "%s:%d: - TRACE", __FUNCTION__, __LINE__)); 
    461462 
     
    521522    struct opus_codec_factory *f = (struct opus_codec_factory*) factory; 
    522523 
     524    PJ_UNUSED_ARG(ci); 
    523525    TRACE_((THIS_FILE, "%s:%d: - TRACE", __FUNCTION__, __LINE__)); 
    524526 
     
    932934    int fec = 0; 
    933935 
     936    PJ_UNUSED_ARG(output_buf_len); 
     937 
    934938    pj_mutex_lock (opus_data->mutex); 
    935939 
     
    10191023    pjmedia_frame *inframe; 
    10201024 
     1025    PJ_UNUSED_ARG(output_buf_len); 
    10211026    pj_mutex_lock (opus_data->mutex); 
    10221027 
     
    10241029        /* Recover the first packet? Don't think so, fill it with zeroes. */ 
    10251030        pj_uint16_t samples_per_frame; 
    1026         samples_per_frame = (opus_data->cfg.sample_rate *  
    1027                              opus_data->ptime) / 1000; 
     1031        samples_per_frame = (pj_uint16_t)(opus_data->cfg.sample_rate *  
     1032                                          opus_data->ptime) / 1000; 
    10281033        output->type = PJMEDIA_FRAME_TYPE_AUDIO; 
    10291034        output->size = samples_per_frame << 1; 
Note: See TracChangeset for help on using the changeset viewer.