diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-17 01:55:10 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-17 01:55:10 +0000 |
commit | 411c83acad6259d4fc6b5ce22faaa43540e6ea06 (patch) | |
tree | 3c03c466aa66bfefa8e8b2fe8fb71d6a1840e757 /jitterbuf.c | |
parent | 88c606cfb04b6a51b1ff9eac860431fba2fcfa31 (diff) |
fix incorrent index calculation for jitterbuffer history (issue #6517)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@10368 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'jitterbuf.c')
-rw-r--r-- | jitterbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jitterbuf.c b/jitterbuf.c index 6f1c1bb71..2fb349764 100644 --- a/jitterbuf.c +++ b/jitterbuf.c @@ -158,7 +158,7 @@ static int history_put(jitterbuf *jb, long ts, long now, long ms) } } - kicked = jb->history[jb->hist_ptr & JB_HISTORY_SZ]; + kicked = jb->history[jb->hist_ptr % JB_HISTORY_SZ]; jb->history[(jb->hist_ptr++) % JB_HISTORY_SZ] = delay; |