summaryrefslogtreecommitdiff
path: root/rtp.c
diff options
context:
space:
mode:
authorJeremy McNamara <jj@nufone.net>2003-11-03 07:14:43 +0000
committerJeremy McNamara <jj@nufone.net>2003-11-03 07:14:43 +0000
commit8284ea8b4639f0b4165081cad3ad55035a3c008e (patch)
tree46298d5305fdff07d98c6707c82966f5b5419849 /rtp.c
parentec8d4cfdcc328916924d36fc9a5205c0b3726d9b (diff)
fix g.723.1 pass-thru. Bug #477
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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;