aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
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;