fix g.723.1 pass-thru. Bug #477

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jeremy McNamara
2003-11-03 07:14:43 +00:00
parent ec8d4cfdcc
commit 8284ea8b46

2
rtp.c
View File

@@ -137,7 +137,7 @@ static int g723_samples(unsigned char *buf, int maxlen)
int res;
while(pos < maxlen) {
res = g723_len(buf[pos]);
if (res < 0)
if (res <= 0)
break;
samples += 240;
pos += res;