Ignore:
Timestamp:
Jan 24, 2017 5:41:05 AM (8 years ago)
Author:
nanang
Message:

Misc (re #1945): Fixed compile warnings on Android 64bit platforms, e.g: dereferencing type-punned pointer, using uninitialized var.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-videodev/android_dev.c

    r5166 r5544  
    751751    const pjmedia_video_format_info *vfi; 
    752752    pjmedia_video_apply_fmt_param vafp; 
    753     pj_uint32_t and_fmt; 
     753    pj_uint32_t and_fmt = 0; 
    754754    unsigned convert_to_i420 = 0; 
    755755    pj_status_t status = PJ_SUCCESS; 
     
    11081108                               jlong user_data) 
    11091109{ 
    1110     and_stream *strm = *(and_stream**)&user_data; 
     1110    and_stream *strm = (and_stream*)(intptr_t)user_data; 
    11111111    pjmedia_frame f; 
    11121112    pj_uint8_t *Y, *U, *V; 
    11131113    pj_status_t status;  
    1114     void *frame_buf, *data_buf;      
    1115  
     1114    void *frame_buf, *data_buf; 
     1115     
    11161116    strm->frame_ts.u64 += strm->ts_inc; 
    11171117    if (!strm->vid_cb.capture_cb) 
Note: See TracChangeset for help on using the changeset viewer.