Ignore:
Timestamp:
Jun 13, 2008 12:52:56 PM (16 years ago)
Author:
bennylp
Message:

Fixed various compilation warnings with gcc strict compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/resample_port.c

    r1955 r2015  
    189189        frame->size = tmp_frame.size < rport->base.info.bytes_per_frame ? 
    190190                      tmp_frame.size : rport->base.info.bytes_per_frame; 
    191         if (tmp_frame.size) 
    192             pjmedia_copy_samples(frame->buf, tmp_frame.buf, frame->size >> 1); 
     191        if (tmp_frame.size) { 
     192            pjmedia_copy_samples((pj_int16_t*)frame->buf,  
     193                                 (const pj_int16_t*)tmp_frame.buf,  
     194                                 frame->size >> 1); 
     195        } 
    193196        return PJ_SUCCESS; 
    194197    } 
Note: See TracChangeset for help on using the changeset viewer.