mydecember / doubango-1

Automatically exported from code.google.com/p/doubango
0 stars 0 forks source link

iLBC decode multi frame rtp packet will crash #136

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
doubango\tinyDAV\src\codecs\ilbc\tdav_codec_ilbc.c line:140
iLBC_decode(ilbc->decblock, &((uint8_t*)in_data)[i*block_size], &ilbc->decoder, 
1/* Normal */);

should change to:

tsk_size_t frame_size = ilbc->decoder.mode == 20 ? NO_OF_BYTES_20MS : 
NO_OF_BYTES_30MS;
iLBC_decode(ilbc->decblock, &((uint8_t*)in_data)[i*frame_size], &ilbc->decoder, 
1/* Normal */);

line:154
((short*)*out_data)[(i*block_size) + k] = ((short) dtmp);
should change to:
((short*)*out_data)[(i*(block_size>>1)) + k] = ((short) dtmp);

Original issue reported on code.google.com by licho...@gmail.com on 31 Aug 2012 at 7:52

GoogleCodeExporter commented 9 years ago
Thanks for reporting this issue

Original comment by boss...@yahoo.fr on 5 Sep 2012 at 4:21