Mercurial > hg > qm-dsp
comparison dsp/signalconditioning/FiltFilt.cpp @ 507:d7b9691817a3
Fix a further overrun that caused the wrong input to be provided to sub-filters!
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Wed, 05 Jun 2019 16:02:20 +0100 |
parents | 285f18c0992a |
children | 855d862cf02b |
comparison
equal
deleted
inserted
replaced
506:285f18c0992a | 507:d7b9691817a3 |
---|---|
56 } | 56 } |
57 ++index; | 57 ++index; |
58 } | 58 } |
59 index = 0; | 59 index = 0; |
60 for (i = 0; i < nFact; i++) { | 60 for (i = 0; i < nFact; i++) { |
61 if (i < length) { | 61 if (i + 1 < length) { |
62 filtScratchIn[(nExt - nFact) + index] = | 62 filtScratchIn[(nExt - nFact) + index] = |
63 sampleN - src[ (length - 2) - i ]; | 63 sampleN - src[ (length - 2) - i ]; |
64 } | 64 } |
65 ++index; | 65 ++index; |
66 } | 66 } |