Mercurial > hg > libxtract
changeset 96:757e6f99dcd7
Dan Stowell: Removed strange "zeroing" part of xtract_mfcc() which was zeroing a load of elements despite the fact that they're ignored by the DCT process called next, and never used for anything. This was writing to an assumed large result array (same size as number of FFT bins) despite the fact that only a small number of MFCCs (typically less than 50) are required, therefore either wasting memory or writing to memory it shouldn't do!
author | Dan Stowell <danstowell@gmail.com> |
---|---|
date | Wed, 03 Oct 2007 13:43:16 +0000 |
parents | 432d97ee02ef |
children | a159098a759e |
files | src/vector.c |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vector.c Wed Oct 03 10:01:15 2007 +0000 +++ b/src/vector.c Wed Oct 03 13:43:16 2007 +0000 @@ -221,8 +221,6 @@ result[filter] = log(result[filter] < XTRACT_LOG_LIMIT ? XTRACT_LOG_LIMIT : result[filter]); } - for(n = filter + 1; n < N; n++) result[n] = 0; - xtract_dct(result, f->n_filters, NULL, result); return XTRACT_SUCCESS;