diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-05-15 22:02:25 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-05-15 22:02:25 +0000 |
commit | b529c3b31e2e07a76d67f46735c84dd1d4170d4d (patch) | |
tree | fdc6ce804f8578c0f751c6f6d0f9f8aaf66e8364 /codecs/codec_gsm.c | |
parent | 9d0aa4c7504d2ff625cc2cb47a31692d63bf68e1 (diff) |
Version 0.1.9 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@323 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/codec_gsm.c')
-rwxr-xr-x | codecs/codec_gsm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/codecs/codec_gsm.c b/codecs/codec_gsm.c index 35ef9e2d9..ebad1225f 100755 --- a/codecs/codec_gsm.c +++ b/codecs/codec_gsm.c @@ -177,10 +177,10 @@ static struct ast_frame *lintogsm_frameout(struct ast_translator_pvt *tmp) while(tmp->tail >= 160) { if ((x+1) * 33 >= sizeof(tmp->outbuf)) { ast_log(LOG_WARNING, "Out of buffer space\n"); - return NULL; + break; } /* Encode a frame of data */ - gsm_encode(tmp->gsm, tmp->buf, (gsm_byte *) tmp->outbuf + (x * 33)); + gsm_encode(tmp->gsm, tmp->buf, ((gsm_byte *) tmp->outbuf) + (x * 33)); /* Assume 8000 Hz -- 20 ms */ tmp->tail -= 160; /* Move the data at the end of the buffer to the front */ |