Displaying 2 results from an estimated 2 matches for "bak_out_len".
2009 Aug 05
0
Bug in libspeexdsp resampler
...The
changed functions follow.
John Ridges
EXPORT int speex_resampler_process_interleaved_float(SpeexResamplerState
*st, const float *in, spx_uint32_t *in_len, float *out, spx_uint32_t
*out_len)
{
spx_uint32_t i;
int istride_save, ostride_save;
spx_uint32_t bak_in_len = *in_len;
spx_uint32_t bak_out_len = *out_len;
istride_save = st->in_stride;
ostride_save = st->out_stride;
st->in_stride = st->out_stride = st->nb_channels;
for (i=0;i<st->nb_channels;i++)
{
*in_len = bak_in_len;
*out_len = bak_out_len;
if (in != NULL)
speex_resampler_process_float(st, i, in+i, in_len, out+i, o...
2012 May 02
1
[PATCH] resample: Fix input indexing bug from interleaved functions
...c
index 7957c61..d59508d 100644
--- a/libspeex/resample.c
+++ b/libspeex/resample.c
@@ -970,13 +970,15 @@ EXPORT int speex_resampler_process_interleaved_float(SpeexResamplerState *st, co
{
spx_uint32_t i;
int istride_save, ostride_save;
- spx_uint32_t bak_len = *out_len;
+ spx_uint32_t bak_out_len = *out_len;
+ spx_uint32_t bak_in_len = *in_len;
istride_save = st->in_stride;
ostride_save = st->out_stride;
st->in_stride = st->out_stride = st->nb_channels;
for (i=0;i<st->nb_channels;i++)
{
- *out_len = bak_len;
+ *out_len = bak_out_len;
+...