Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/internal_modules/roc_audio/packetizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,12 @@ packet::PacketPtr Packetizer::create_packet_() {
}

if (!composer_.prepare(*packet, buffer, payload_size_)) {
roc_log(LogError, "packetizer: can't prepare packet");
roc_log(LogError,
"packetizer: can't prepare packet:"
" packet buffer is too small for the requested payload:"
" payload_size=%lu buffer_capacity=%lu"
" (increase max_packet_size in context config)",
(unsigned long)payload_size_, (unsigned long)buffer.capacity());
return NULL;
}
packet->add_flags(packet::Packet::FlagPrepared);
Expand Down
2 changes: 1 addition & 1 deletion src/internal_modules/roc_node/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct ContextConfig {
size_t max_frame_size;

ContextConfig()
: max_packet_size(2048)
: max_packet_size(16384)
, max_frame_size(4096) {
}
};
Expand Down
Loading