summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2010-12-12 13:22:40 -0500
committerTom Rondeau <trondeau@vt.edu>2010-12-12 13:51:12 -0500
commit7e21f9ad055bb646b22edb462112443bab670b4e (patch)
tree79e7f2237332f2f6af019c641d40c8d2f125c2e1
parentc75950bd5babfcab323b29b956fa0b620c3c19da (diff)
PFB resampler: fixes bug where filter could be looking past the number of inputs.
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc
index 35455aa123..320568bc31 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc
+++ b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc
@@ -176,7 +176,7 @@ gr_pfb_arb_resampler_ccf::general_work (int noutput_items,
j = d_last_filter;
// produce output as long as we can and there are enough input samples
- while((i < noutput_items) && (count < ninput_items[0]-1)) {
+ while((i < noutput_items) && (count < ninput_items[0]-d_taps_per_filter)) {
// start j by wrapping around mod the number of channels
while((j < d_int_rate) && (i < noutput_items)) {
// Take the current filter and derivative filter output