dect
/
asterisk
Archived
13
0
Fork 0

fix g.723.1 pass-thru. Bug #477

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1685 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
jeremy 2003-11-03 07:14:43 +00:00
parent 345d60ead9
commit 8744741c10
1 changed files with 1 additions and 1 deletions

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;