aboutsummaryrefslogtreecommitdiffstats
path: root/op25/gr-op25_repeater/lib/vocoder_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'op25/gr-op25_repeater/lib/vocoder_impl.cc')
-rw-r--r--op25/gr-op25_repeater/lib/vocoder_impl.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/op25/gr-op25_repeater/lib/vocoder_impl.cc b/op25/gr-op25_repeater/lib/vocoder_impl.cc
index 967dde4..935c243 100644
--- a/op25/gr-op25_repeater/lib/vocoder_impl.cc
+++ b/op25/gr-op25_repeater/lib/vocoder_impl.cc
@@ -139,13 +139,14 @@ vocoder_impl::general_work_encode (int noutput_items,
const int fragments_available = output_queue.size() / FRAGMENT_SIZE;
const int nsamples_consume = std::min(ninput_items[0], std::max(0,(noutput_fragments - fragments_available) * 9 * 160));
- if (nsamples_consume > 0)
+ if (nsamples_consume > 0) {
p1voice_encode.compress_samp(in, nsamples_consume);
- // Tell runtime system how many input items we consumed on
- // each input stream.
+ // Tell runtime system how many input items we consumed on
+ // each input stream.
- consume_each (nsamples_consume);
+ consume_each (nsamples_consume);
+ }
if (opt_udp_port > 0) // in udp option, we are a gr sink only
return 0;