[xiph-commits] r10805 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Sun Feb 12 05:01:39 PST 2006


Author: jm
Date: 2006-02-12 05:01:36 -0800 (Sun, 12 Feb 2006)
New Revision: 10805

Modified:
   trunk/speex/libspeex/jitter.c
Log:
fixed an off-by-one bug (thanks to keith)


Modified: trunk/speex/libspeex/jitter.c
===================================================================
--- trunk/speex/libspeex/jitter.c	2006-02-12 12:44:31 UTC (rev 10804)
+++ trunk/speex/libspeex/jitter.c	2006-02-12 13:01:36 UTC (rev 10805)
@@ -212,7 +212,7 @@
    {
       jitter->shortterm_margin[MAX_MARGIN-1] += jitter->shortterm_margin[MAX_MARGIN-2];
       jitter->longterm_margin[MAX_MARGIN-1] += jitter->longterm_margin[MAX_MARGIN-2];
-      for (i=MAX_MARGIN-2;i>=0;i--)
+      for (i=MAX_MARGIN-3;i>=0;i--)
       {
          jitter->shortterm_margin[i+1] = jitter->shortterm_margin[i];
          jitter->longterm_margin[i+1] = jitter->longterm_margin[i];         



More information about the commits mailing list