Fix a benign warning from Clang 16 on FreeBSD

This commit is contained in:
Mike Brady
2023-09-20 11:46:38 +01:00
parent b4a2e5da36
commit f5475924dc
-3
View File
@@ -199,13 +199,10 @@ void *rtp_audio_receiver(void *arg) {
float stat_mean = 0.0;
float stat_M2 = 0.0;
int frame_count = 0;
ssize_t nread;
while (1) {
nread = recv(conn->audio_socket, packet, sizeof(packet), 0);
frame_count++;
uint64_t local_time_now_ns = get_absolute_time_in_ns();
if (time_of_previous_packet_ns) {
float time_interval_us = (local_time_now_ns - time_of_previous_packet_ns) * 0.001;