diff options
author | Marcus Müller <mueller@kit.edu> | 2018-05-16 18:36:39 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-06-25 20:49:49 +0200 |
commit | 0c4e231953c6ac62a1dede2c7ba63a4c3a6b3f43 (patch) | |
tree | 084eefaaed187aad181e6c72eb389e41994bc1c8 | |
parent | d84d2d0678e967c7aa88055a6f291ba0420787ba (diff) |
filter_delay: fixed access to nonexistant element of input_items
in case of only one input stream.
-rw-r--r-- | gr-filter/lib/filter_delay_fc_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-filter/lib/filter_delay_fc_impl.cc b/gr-filter/lib/filter_delay_fc_impl.cc index 1a4d47582b..a32f8e2e45 100644 --- a/gr-filter/lib/filter_delay_fc_impl.cc +++ b/gr-filter/lib/filter_delay_fc_impl.cc @@ -76,7 +76,7 @@ namespace gr { gr_vector_void_star &output_items) { float *in0 = (float *)input_items[0]; - float *in1 = (float *)input_items[1]; + float *in1; gr_complex *out = (gr_complex *)output_items[0]; if(d_update) { @@ -95,6 +95,7 @@ namespace gr { break; case 2: + in1 = (float *)input_items[1]; for(int j = 0; j < noutput_items; j++) { out[j] = gr_complex(in0[j + d_delay], d_fir->filter(&in1[j])); |