diff options
author | Mark Spencer <markster@digium.com> | 2001-05-15 22:02:25 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2001-05-15 22:02:25 +0000 |
commit | d9a7d03d8d2692d31072b046da69a82ed7a33d68 (patch) | |
tree | fdc6ce804f8578c0f751c6f6d0f9f8aaf66e8364 /codecs | |
parent | dd539444bba8e519e1f34f5baa97ae535a7ad628 (diff) |
Version 0.1.9 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'codecs')
-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 */ |