audioconvert: fix native variable rate resampler

This commit is contained in:
Wim Taymans 2019-04-30 15:14:05 +02:00
parent 5ac383e7f7
commit 636c02d38b
3 changed files with 16 additions and 13 deletions

View file

@ -78,7 +78,7 @@ DEFINE_RESAMPLER(copy,arch) \
index += to_copy; \
offs += to_copy; \
} \
*in_len = index - data->index; \
*in_len = index; \
*out_len = offs; \
data->index = index; \
}
@ -143,8 +143,8 @@ DEFINE_RESAMPLER(inter,arch) \
phase = data->phase; \
\
for (o = offs; o < olen && index + n_taps <= ilen; o++) { \
const float *ip; \
float ph, x, *t0, *t1; \
const float *ip, *t0, *t1; \
float ph, x; \
uint32_t offset; \
\
ip = &s[index]; \