diff options
author | Tom Rondeau <tom@trondeau.com> | 2015-09-25 11:02:18 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2015-09-25 11:02:18 -0400 |
commit | 82dfb5b80f541c799e3ce810105bfb989bd5fca6 (patch) | |
tree | 4192b91d690014110251b471b533d99b0fbcb76c /gr-fec/lib/async_decoder_impl.cc | |
parent | cbd70793b710abe4e92e960f23c3286f7270dd65 (diff) |
fec: removed logic that will never hit.
We prevent packets larger than the MTU now, so no need to adjust the
buffer size.
Diffstat (limited to 'gr-fec/lib/async_decoder_impl.cc')
-rw-r--r-- | gr-fec/lib/async_decoder_impl.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gr-fec/lib/async_decoder_impl.cc b/gr-fec/lib/async_decoder_impl.cc index ed709e8c67..33aaacb2f4 100644 --- a/gr-fec/lib/async_decoder_impl.cc +++ b/gr-fec/lib/async_decoder_impl.cc @@ -148,14 +148,6 @@ namespace gr { volk_32f_s32f_multiply_32f(d_tmp_f32, f32in, 48.0f, nbits_in); } else { - - // grow d_tmp_f32 if needed - if(nbits_in > d_max_bits_in){ - d_max_bits_in = nbits_in; - volk_free(d_tmp_f32); - d_tmp_f32 = (float*)volk_malloc(d_max_bits_in*sizeof(float), - volk_get_alignment()); - } memcpy(d_tmp_f32, f32in, nbits_in*sizeof(float)); } @@ -172,7 +164,7 @@ namespace gr { d_decoder->generic_work((void*)d_tmp_u8, (void*)u8out); } else { - for(size_t i=0; i<nblocks; i++){ + for(size_t i = 0; i < nblocks; i++){ d_decoder->generic_work((void*)&d_tmp_f32[i*d_decoder->get_input_size()], (void*)&u8out[i*d_decoder->get_output_size()]); } |