mirror of https://git.ffmpeg.org/ffmpeg.git
lavf/udp: fix the comments for default UDP socket recvbuf size
15d160cc0b
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>
This commit is contained in:
parent
04037e2966
commit
3205ed31a7
|
@ -852,7 +852,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
} else {
|
} 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;
|
tmp = s->buffer_size;
|
||||||
if (setsockopt(udp_fd, SOL_SOCKET, SO_RCVBUF, &tmp, sizeof(tmp)) < 0) {
|
if (setsockopt(udp_fd, SOL_SOCKET, SO_RCVBUF, &tmp, sizeof(tmp)) < 0) {
|
||||||
ff_log_net_error(h, AV_LOG_WARNING, "setsockopt(SO_RECVBUF)");
|
ff_log_net_error(h, AV_LOG_WARNING, "setsockopt(SO_RECVBUF)");
|
||||||
|
|
Loading…
Reference in New Issue