Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
lavf/udp: fix the comments for default UDP socket recvbuf size
15d160c increased the UDP socket receiving buffer size
(64K ->384K), but missed to update this comments.

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
  • Loading branch information
mypopydev committed Jul 12, 2020
1 parent 04037e2 commit 3205ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/udp.c
Expand Up @@ -852,7 +852,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
goto fail;
}
} else {
/* set udp recv buffer size to the requested value (default 64K) */
/* set udp recv buffer size to the requested value (default UDP_RX_BUF_SIZE) */
tmp = s->buffer_size;
if (setsockopt(udp_fd, SOL_SOCKET, SO_RCVBUF, &tmp, sizeof(tmp)) < 0) {
ff_log_net_error(h, AV_LOG_WARNING, "setsockopt(SO_RECVBUF)");
Expand Down

0 comments on commit 3205ed3

Please sign in to comment.