fix g.723.1 pass-thru. Bug #477
authorJeremy McNamara <jj@nufone.net>
Mon, 3 Nov 2003 07:14:43 +0000 (07:14 +0000)
committerJeremy McNamara <jj@nufone.net>
Mon, 3 Nov 2003 07:14:43 +0000 (07:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1685 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rtp.c

diff --git a/rtp.c b/rtp.c
index bd29e04..cb66ea9 100755 (executable)
--- 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;