Changeset 3250
- Timestamp:
- Aug 5, 2010 10:41:48 AM (14 years ago)
- Location:
- pjproject/trunk/pjmedia/src/pjmedia-codec
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/g722.c
r3202 r3250 589 589 590 590 p = (pj_int16_t*)input->buf; 591 end = p + input->size ;591 end = p + input->size/2; 592 592 while (p < end) { 593 593 *p++ >>= g722_data->pcm_shift; -
pjproject/trunk/pjmedia/src/pjmedia-codec/g722/g722_dec.c
r3202 r3250 505 505 int ilowr, ylow, rlow, dlowt; 506 506 int ihigh, rhigh, dhigh; 507 int pcm1, pcm2; 507 508 pj_uint8_t *in_ = (pj_uint8_t*) in; 508 509 … … 529 530 /* rhigh <= output high band pcm */ 530 531 531 rx_qmf(dec, rlow, rhigh, &out[i*2], &out[i*2+1]); 532 rx_qmf(dec, rlow, rhigh, &pcm1, &pcm2); 533 out[i*2] = (pj_int16_t)pcm1; 534 out[i*2+1] = (pj_int16_t)pcm2; 532 535 } 533 536
Note: See TracChangeset
for help on using the changeset viewer.