[xiph-commits] r12424 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Sun Feb 4 02:48:06 PST 2007
Author: jm
Date: 2007-02-04 02:48:03 -0800 (Sun, 04 Feb 2007)
New Revision: 12424
Modified:
trunk/speex/libspeex/resample.c
Log:
fixed input stride bug.
Modified: trunk/speex/libspeex/resample.c
===================================================================
--- trunk/speex/libspeex/resample.c 2007-02-03 23:11:37 UTC (rev 12423)
+++ trunk/speex/libspeex/resample.c 2007-02-04 10:48:03 UTC (rev 12424)
@@ -185,7 +185,7 @@
}
/* Do the new part */
- ptr = in+last_sample-N+1+j;
+ ptr = in+st->in_stride*(last_sample-N+1+j);
for (;j<N;j++)
{
sum += MULT16_16(*ptr,st->sinc_table[samp_frac_num*st->filt_len+j]);
@@ -239,7 +239,7 @@
accum[2] += MULT16_16(curr_mem,st->sinc_table[4+(j+1)*st->oversample-offset]);
accum[3] += MULT16_16(curr_mem,st->sinc_table[4+(j+1)*st->oversample-offset+1]);
}
- ptr = in+last_sample-N+1+j;
+ ptr = in+st->in_stride*(last_sample-N+1+j);
/* Do the new part */
for (;j<N;j++)
{
More information about the commits
mailing list