diff options
author | Benny Prijono <bennylp@teluu.com> | 2013-04-23 05:37:41 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2013-04-23 05:37:41 +0000 |
commit | 38bff95961417943c24b15392e0901c34e5a5650 (patch) | |
tree | 0a98bd2973be5ff997da2e1f5082ca933493fe0b /pjmedia/src/pjmedia-codec/opencore_amr.c | |
parent | 29c2410ae1d21f43fb6ba2ddcd5c6a67cfe85fd0 (diff) |
Re #1630: fixed various warnings
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4487 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src/pjmedia-codec/opencore_amr.c')
-rw-r--r-- | pjmedia/src/pjmedia-codec/opencore_amr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia-codec/opencore_amr.c b/pjmedia/src/pjmedia-codec/opencore_amr.c index 35d9e522..99ad54ef 100644 --- a/pjmedia/src/pjmedia-codec/opencore_amr.c +++ b/pjmedia/src/pjmedia-codec/opencore_amr.c @@ -808,7 +808,6 @@ static pj_status_t amr_codec_encode( pjmedia_codec *codec, pj_size_t payload_len; unsigned dtx_cnt, sid_cnt; pj_status_t status; - int size; pj_assert(amr_data != NULL); PJ_ASSERT_RETURN(input && output, PJ_EINVAL); @@ -826,16 +825,21 @@ static pj_status_t amr_codec_encode( pjmedia_codec *codec, speech = (pj_int16_t*)input->buf; bitstream = (unsigned char*)output->buf; while (nsamples >= samples_per_frame) { + int size; if (amr_data->enc_setting.amr_nb) { #ifdef USE_AMRNB size = Encoder_Interface_Encode (amr_data->encoder, amr_data->enc_mode, speech, bitstream, 0); +#else + size = 0; #endif } else { #ifdef USE_AMRWB size = E_IF_encode (amr_data->encoder, amr_data->enc_mode, speech, bitstream, 0); +#else + size = 0; #endif } if (size == 0) { |