Changeset 5045 for pjproject/trunk/pjmedia/src/pjmedia-codec/opencore_amr.c
- Timestamp:
- Apr 6, 2015 6:13:51 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/opencore_amr.c
r4487 r5045 569 569 idx = (attr->info.clock_rate <= 8000? IDX_AMR_NB: IDX_AMR_WB); 570 570 enc_mode = pjmedia_codec_amr_get_mode(attr->info.avg_bps); 571 pj_assert(enc_mode >= 0 && enc_mode < amr_bitrates_size[idx]);571 pj_assert(enc_mode >= 0 && (unsigned)enc_mode < amr_bitrates_size[idx]); 572 572 573 573 /* Check octet-align */ … … 603 603 l = pj_strlen(&attr->setting.enc_fmtp.param[i].val); 604 604 while (l--) { 605 if (*p>='0' && *p<=('0'+amr_bitrates_size[idx]-1)) {605 if (*p>='0' && (unsigned)*p<=('0'+amr_bitrates_size[idx]-1)) { 606 606 pj_int8_t tmp = *p - '0' - enc_mode; 607 607 … … 898 898 &input->timestamp); 899 899 if (PJMEDIA_CODEC_MAX_SILENCE_PERIOD == -1 || 900 dtx_duration < PJMEDIA_CODEC_MAX_SILENCE_PERIOD*901 amr_data->clock_rate/1000)900 dtx_duration < (int)(PJMEDIA_CODEC_MAX_SILENCE_PERIOD* 901 amr_data->clock_rate/1000)) 902 902 { 903 903 output->size = 0;
Note: See TracChangeset
for help on using the changeset viewer.