From 48825f258c6f8d0dbf0ab3ca7b8c44ed0e9e776c Mon Sep 17 00:00:00 2001 From: nolan-veed <88709630+nolan-veed@users.noreply.github.com> Date: Sun, 26 Nov 2023 20:00:56 +0000 Subject: [PATCH] Added extra_space for header/footers. --- src/tools/roc_send/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tools/roc_send/main.cpp b/src/tools/roc_send/main.cpp index f89e4a7283..bffb2ede6b 100644 --- a/src/tools/roc_send/main.cpp +++ b/src/tools/roc_send/main.cpp @@ -99,11 +99,13 @@ int main(int argc, char** argv) { return 1; } } else { + size_t extra_space = 64; // TODO(gh-608): take size from --packet-encoding instead of assuming 2 bytes per // sample context_config.max_packet_size = 2 - * sender_config.input_sample_spec.ns_2_samples_overall( - sender_config.packet_length); + * sender_config.input_sample_spec.ns_2_samples_overall( + sender_config.packet_length) + + extra_space; } if (args.max_frame_size_given) {