aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authorjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2003-11-03 07:14:43 +0000
committerjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2003-11-03 07:14:43 +0000
commit8744741c103cf65b6688f6963a7a55e296399c27 (patch)
tree46298d5305fdff07d98c6707c82966f5b5419849 /rtp.c
parent345d60ead9dc87022b14bb70d8c1e3768e2b39b7 (diff)
fix g.723.1 pass-thru. Bug #477
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1685 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtp.c b/rtp.c
index bd29e044b..cb66ea9e8 100755
--- a/rtp.c
+++ b/rtp.c
@@ -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;