diff options
Diffstat (limited to 'gr-error-correcting-codes/src/lib/libecc/encoder.cc')
-rw-r--r-- | gr-error-correcting-codes/src/lib/libecc/encoder.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gr-error-correcting-codes/src/lib/libecc/encoder.cc b/gr-error-correcting-codes/src/lib/libecc/encoder.cc index 7e7718af1a..124c1eb1d3 100644 --- a/gr-error-correcting-codes/src/lib/libecc/encoder.cc +++ b/gr-error-correcting-codes/src/lib/libecc/encoder.cc @@ -118,6 +118,11 @@ encoder::encode " # input bits used = " << d_in_buf->n_items_used() << "\n"; } + // clear these buffers, just in case + + d_in_buf = 0; + d_out_buf = 0; + // return the actual number of input bits used return (n_bits_to_input - d_n_bits_to_input); @@ -209,6 +214,11 @@ encoder::encode " # input bits used = " << d_in_buf->n_items_used() << "\n"; } + // clear these buffers, just in case + + d_in_buf = 0; + d_out_buf = 0; + // return the actual number of output bits written return (n_bits_to_output - d_n_bits_to_output); |