From: Russell Bryant Date: Fri, 17 Feb 2006 01:59:59 +0000 (+0000) Subject: Merged revisions 10368 via svnmerge from X-Git-Tag: 1.4.0-beta1~2579 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bf4f164084cd6451b04cc3cbbe6ca9ac6bc8a32;p=thirdparty%2Fasterisk.git Merged revisions 10368 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r10368 | russell | 2006-02-16 20:55:10 -0500 (Thu, 16 Feb 2006) | 2 lines fix incorrent index calculation for jitterbuffer history (issue #6517) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10369 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/jitterbuf.c b/jitterbuf.c index 6f1c1bb718..2fb349764e 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;