]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge script <automerge@asterisk.org>
Fri, 17 Feb 2006 02:03:24 +0000 (02:03 +0000)
committerAutomerge script <automerge@asterisk.org>
Fri, 17 Feb 2006 02:03:24 +0000 (02:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@10389 65c4cc65-6c06-0410-ace0-fbb531ad65f3

jitterbuf.c

index 6f1c1bb71848f3530b64f3e58a9054d3f89e9514..2fb349764e02c76289b634dfa541a16acc8fa842 100644 (file)
@@ -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;