diff options
author | Nick Ruff <nickruff@devvm32779.prn1.facebook.com> | 2021-06-11 21:02:02 +0200 |
---|---|---|
committer | Thilo Borgmann <thilo.borgmann@mail.de> | 2021-06-20 22:45:35 +0200 |
commit | ea24781a9b508f92b6b2bb97ffca386898b70193 (patch) | |
tree | 8380652b8d28962907c90749a170cff229a44d4f /libavformat/tcp.c | |
parent | 52795d7f091f45a170eed9bc7d1a92f396d176c9 (diff) |
lavf/rtmp: Add option to set TCP_NODELAY for rtmp
Suggested-By: ffmpeg@fb.com
Diffstat (limited to 'libavformat/tcp.c')
-rw-r--r-- | libavformat/tcp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 2198e0f00e..1c19aed887 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -135,6 +135,9 @@ static int tcp_open(URLContext *h, const char *uri, int flags) if (av_find_info_tag(buf, sizeof(buf), "listen_timeout", p)) { s->listen_timeout = strtol(buf, NULL, 10); } + if (av_find_info_tag(buf, sizeof(buf), "tcp_nodelay", p)) { + s->tcp_nodelay = strtol(buf, NULL, 10); + } } if (s->rw_timeout >= 0) { s->open_timeout = |