From 8744741c103cf65b6688f6963a7a55e296399c27 Mon Sep 17 00:00:00 2001 From: jeremy Date: Mon, 3 Nov 2003 07:14:43 +0000 Subject: fix g.723.1 pass-thru. Bug #477 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1685 f38db490-d61c-443f-a65b-d21fe96a405b --- rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rtp.c') 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; -- cgit v1.2.3