diff --git a/core/plug-in/gsm/gsm.c b/core/plug-in/gsm/gsm.c index 32e44f1c..415dff9c 100644 --- a/core/plug-in/gsm/gsm.c +++ b/core/plug-in/gsm/gsm.c @@ -59,6 +59,7 @@ END_EXPORTS static int pcm16_2_gsm(unsigned char* out_buf, unsigned char* in_buf, unsigned int size, unsigned int channels, unsigned int rate, long h_codec ) { + int i; div_t blocks; blocks = div(size,320); @@ -67,13 +68,16 @@ static int pcm16_2_gsm(unsigned char* out_buf, unsigned char* in_buf, unsigned i return -1; } - gsm_encode((gsm)h_codec,(gsm_signal*)in_buf,out_buf); + for (i=0;i