fix g.723.1 pass-thru. Bug #477

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Jeremy McNamara 22 years ago
parent ec8d4cfdcc
commit 8284ea8b46

@ -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;

Loading…
Cancel
Save