[asterisk-commits] branch 1.2 r10368 - /branches/1.2/jitterbuf.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Feb 16 18:55:12 MST 2006


Author: russell
Date: Thu Feb 16 19:55:10 2006
New Revision: 10368

URL: http://svn.digium.com/view/asterisk?rev=10368&view=rev
Log:
fix incorrent index calculation for jitterbuffer history (issue #6517)

Modified:
    branches/1.2/jitterbuf.c

Modified: branches/1.2/jitterbuf.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/jitterbuf.c?rev=10368&r1=10367&r2=10368&view=diff
==============================================================================
--- branches/1.2/jitterbuf.c (original)
+++ branches/1.2/jitterbuf.c Thu Feb 16 19:55:10 2006
@@ -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;
 



More information about the asterisk-commits mailing list