Ignore:
Timestamp:
Mar 3, 2016 8:05:55 AM (9 years ago)
Author:
nanang
Message:

Misc (Re #1882): Fixed crash in sample app encdec.c due to insufficient buffer when using codec with clockrate > 16000Hz.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/encdec.c

    r3664 r5251  
    143143    for (;;) { 
    144144        pjmedia_frame frm_pcm, frm_bit, out_frm, frames[4]; 
    145         pj_int16_t pcmbuf[320]; 
     145        pj_int16_t pcmbuf[2048]; 
    146146        pj_timestamp ts; 
    147         pj_uint8_t bitstream[160]; 
     147        pj_uint8_t bitstream[2048]; 
    148148 
    149149        frm_pcm.buf = (char*)pcmbuf; 
Note: See TracChangeset for help on using the changeset viewer.