pipewire/src/modules/module-netjack2
Wim Taymans 0186bccdce netjack2: account for overhead
The period calculation now subtracts the per-port int32_t overhead
from max_size before computing how many float samples fit. This guarantees
active_ports * (period * sizeof(float) + sizeof(int32_t)) <= max_size, so
packet_size = sizeof(header) + active_ports * sub_period_bytes <= mtu.

sub_cycle is bounded by nframes / sub_period_size, matching the sender's
num_packets = nframes / sub_period_size. Also ensure sub_period_size != 0
to avoid division by 0.
2026-04-29 12:27:29 +02:00
..
packets.h security: fix out-of-bounds read from non-null-terminated netjack2 strings 2026-04-24 15:55:35 +02:00
peer.c netjack2: account for overhead 2026-04-29 12:27:29 +02:00