Ignore:
Timestamp:
Jan 31, 2020 3:15:41 AM (4 years ago)
Author:
riza
Message:

Re #2253:

  • Add vpx.h/vpx.c to Visual Studio project files
  • Fix compile error/warning from Visual Studio
File:
1 edited

Legend:

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

    r6110 r6147  
    366366    *p_codec = codec; 
    367367    return PJ_SUCCESS; 
    368  
    369 on_error: 
    370     vpx_dealloc_codec(factory, codec); 
    371     return PJMEDIA_CODEC_EFAILED; 
    372368} 
    373369 
     
    855851         
    856852            pj_memcpy(vpx_data->dec_buf + whole_len, 
    857                       packets[i].buf + desc_len, packet_size); 
     853                      (char *)packets[i].buf + desc_len, packet_size); 
    858854            whole_len += packet_size; 
    859855        } 
     
    913909 
    914910        for (y = 0; y < h; ++y) { 
    915             pj_memcpy(output->buf + pos, buf, w); 
     911            pj_memcpy((char *)output->buf + pos, buf, w); 
    916912            pos += w; 
    917913            buf += stride; 
Note: See TracChangeset for help on using the changeset viewer.