]> git.sesse.net Git - ffmpeg/commitdiff
lavf/udp: fix the comments for default UDP socket recvbuf size
authorJun Zhao <barryjzhao@tencent.com>
Sat, 11 Jul 2020 11:09:36 +0000 (19:09 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Sun, 12 Jul 2020 00:13:00 +0000 (08:13 +0800)
15d160cc0b2 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>
libavformat/udp.c

index ad6992c57dbc503d59fb6330fa944963f1d61885..30d804143377f975d803150e07139b8f0717e301 100644 (file)
@@ -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)");