Skip to content

Commit

Permalink
Added extra_space for header/footers.
Browse files Browse the repository at this point in the history
  • Loading branch information
nolan-veed committed Nov 26, 2023
1 parent 488da6c commit 48825f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tools/roc_send/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 48825f2

Please sign in to comment.