1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

libavformat/udp: Fix call to recvfrom(2)

Last parameter to recvfrom() is not initialized, causing
recvfrom() to randomly return EINVAL. Issue was introduced in
af04a27893.
This commit is contained in:
Desmond Liu
2025-10-30 17:22:12 -07:00
parent 746650dfe5
commit 4348bde2d2

View File

@@ -543,6 +543,7 @@ static void *circular_buffer_task_rx( void *_URLContext)
} }
while(1) { while(1) {
UDPQueuedPacketHeader pkt_header; UDPQueuedPacketHeader pkt_header;
pkt_header.addr_len = sizeof(pkt_header.addr);
pthread_mutex_unlock(&s->mutex); pthread_mutex_unlock(&s->mutex);
/* Blocking operations are always cancellation points; /* Blocking operations are always cancellation points;