diff options
author | Tom Rondeau | 2010-12-12 13:22:40 -0500 |
---|---|---|
committer | Tom Rondeau | 2010-12-12 13:22:40 -0500 |
commit | f53f2494c65697bf04f7d64bd1865305ff391fcc (patch) | |
tree | cf2cc0a4eb56a5a0092dd3e933b0094c3643c79d | |
parent | 2723c3fb2a22872bba1c72bab1d0c4e74ffda86f (diff) | |
download | gnuradio-f53f2494c65697bf04f7d64bd1865305ff391fcc.tar.gz gnuradio-f53f2494c65697bf04f7d64bd1865305ff391fcc.tar.bz2 gnuradio-f53f2494c65697bf04f7d64bd1865305ff391fcc.zip |
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.cc | 2 |
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 2c5e3a7af..3752603a0 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 @@ -178,7 +178,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)) { |