Index: jitterbuf.c =================================================================== --- jitterbuf.c (revision 10337) +++ jitterbuf.c (working copy) @@ -158,7 +158,7 @@ } } - 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;