From 38b2cb60befdd7d800f2b1f20da3a475ba27ef8e Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 8 Jan 2018 11:09:10 -0500 Subject: [PATCH] partial workaround for excess cpu usage --- op25/gr-op25_repeater/lib/p25_frame_assembler_impl.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/op25/gr-op25_repeater/lib/p25_frame_assembler_impl.cc b/op25/gr-op25_repeater/lib/p25_frame_assembler_impl.cc index 1c1acf7..dba0aa9 100644 --- a/op25/gr-op25_repeater/lib/p25_frame_assembler_impl.cc +++ b/op25/gr-op25_repeater/lib/p25_frame_assembler_impl.cc @@ -113,6 +113,7 @@ p25_frame_assembler_impl::forecast(int nof_output_items, gr_vector_int &nof_inpu nof_samples_reqd = nof_output_items; if (d_do_audio_output) nof_samples_reqd = 0.6 * nof_output_items; + nof_samples_reqd = std::max(nof_samples_reqd, 256); std::fill(&nof_input_items_reqd[0], &nof_input_items_reqd[nof_inputs], nof_samples_reqd); }