summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <ikj1234i@yahoo.com>2018-01-08 11:09:10 -0500
committerMax <ikj1234i@yahoo.com>2018-01-08 11:09:10 -0500
commit38b2cb60befdd7d800f2b1f20da3a475ba27ef8e (patch)
treecbfd018c1fc10028b88ff55d7a22a3c5fa2c4c8e
parentd25d93cf9e9b870e9e1440d9aaa7c9239fda56b6 (diff)
partial workaround for excess cpu usage
-rw-r--r--op25/gr-op25_repeater/lib/p25_frame_assembler_impl.cc1
1 files changed, 1 insertions, 0 deletions
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);
}