Ignore:
Timestamp:
Jul 3, 2006 3:19:31 PM (18 years ago)
Author:
bennylp
Message:

Change all pj_memset to pj_bzero(), where applicable

File:
1 edited

Legend:

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

    r535 r582  
    382382    PJ_ASSERT_RETURN(factory==&spx_factory.base, PJ_EINVAL); 
    383383 
    384     pj_memset(attr, 0, sizeof(pjmedia_codec_param)); 
     384    pj_bzero(attr, sizeof(pjmedia_codec_param)); 
    385385    attr->info.pt = (pj_uint8_t)id->pt; 
    386386    attr->info.channel_cnt = 1; 
     
    442442            continue; 
    443443 
    444         pj_memset(&codecs[*count], 0, sizeof(pjmedia_codec_info)); 
     444        pj_bzero(&codecs[*count], sizeof(pjmedia_codec_info)); 
    445445        codecs[*count].encoding_name = pj_str("speex"); 
    446446        codecs[*count].pt = spx_factory.speex_param[i].pt; 
     
    751751 
    752752    if (input->type != PJMEDIA_FRAME_TYPE_AUDIO) { 
    753         pj_memset(output->buf, 0, output_buf_len); 
     753        pj_bzero(output->buf, output_buf_len); 
    754754        output->size = 320; 
    755755        output->timestamp.u64 = input->timestamp.u64; 
Note: See TracChangeset for help on using the changeset viewer.