aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/network.h
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2017-11-13 12:20:18 -0800
committerAman Gupta <aman@tmm1.net>2017-11-17 10:48:55 -0800
commit80bb81a8f34729443bdbcdb3bc2c89c221291fe6 (patch)
tree546aaf82c1ad431bfc096c6a1ea882af3b872056 /libavformat/network.h
parentce001bb8fc6677541c401a614e05e5058d58dde1 (diff)
downloadffmpeg-80bb81a8f34729443bdbcdb3bc2c89c221291fe6.tar.gz
avformat/tcp: add option to enable TCP_NODELAY
This can reduce latency and increase throughput, particularly on high latency networks. Signed-off-by: Aman Gupta <aman@tmm1.net> Reviewed-by: Jeyapal, Karthick <kjeyapal@akamai.com>
Diffstat (limited to 'libavformat/network.h')
-rw-r--r--libavformat/network.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/network.h b/libavformat/network.h
index f83c796a95..b78e3ad6ed 100644
--- a/libavformat/network.h
+++ b/libavformat/network.h
@@ -59,6 +59,7 @@ int ff_neterrno(void);
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <netinet/tcp.h>
#include <netdb.h>
#define ff_neterrno() AVERROR(errno)