Changeset 1677 for pjproject/trunk/pjmedia/src/pjmedia-codec/speex_codec.c
- Timestamp:
- Jan 11, 2008 8:52:18 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/speex_codec.c
r1266 r1677 773 773 spx = (struct spx_private*) codec->codec_data; 774 774 775 PJ_ASSERT_RETURN(output_buf_len >= 320, PJMEDIA_CODEC_EPCMTOOSHORT); 776 775 777 if (input->type != PJMEDIA_FRAME_TYPE_AUDIO) { 776 pj _bzero(output->buf, output_buf_len);778 pjmedia_zero_samples((pj_int16_t*)output->buf, 160); 777 779 output->size = 320; 778 780 output->timestamp.u64 = input->timestamp.u64; … … 788 790 789 791 output->type = PJMEDIA_FRAME_TYPE_AUDIO; 790 output->size = speex_bits_nbytes(&spx->dec_bits); 791 pj_assert(output->size <= (unsigned)output_buf_len); 792 output->size = 320; 792 793 output->timestamp.u64 = input->timestamp.u64; 793 794
Note: See TracChangeset
for help on using the changeset viewer.