Misc (Re #1882): Fixed crash in sample app encdec.c due to insufficient buffer when using codec with clockrate > 16000Hz.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5251 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
00f9ffc906
commit
21b28984d8
|
@ -142,9 +142,9 @@ static pj_status_t enc_dec_test(const char *codec_id,
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
pjmedia_frame frm_pcm, frm_bit, out_frm, frames[4];
|
pjmedia_frame frm_pcm, frm_bit, out_frm, frames[4];
|
||||||
pj_int16_t pcmbuf[320];
|
pj_int16_t pcmbuf[2048];
|
||||||
pj_timestamp ts;
|
pj_timestamp ts;
|
||||||
pj_uint8_t bitstream[160];
|
pj_uint8_t bitstream[2048];
|
||||||
|
|
||||||
frm_pcm.buf = (char*)pcmbuf;
|
frm_pcm.buf = (char*)pcmbuf;
|
||||||
frm_pcm.size = samples_per_frame * 2;
|
frm_pcm.size = samples_per_frame * 2;
|
||||||
|
|
Loading…
Reference in New Issue