]> git.sesse.net Git - ffmpeg/commit
avformat/udp: increase the default buffer size of a receiving socket to 384K
authorMarton Balint <cus@passwd.hu>
Tue, 14 Jan 2020 18:18:01 +0000 (19:18 +0100)
committerMarton Balint <cus@passwd.hu>
Sat, 25 Jan 2020 22:16:47 +0000 (23:16 +0100)
commit15d160cc0b23f531a3f7f3f4c9eb463b179227f3
tree181dba0d62df7226254e5cede032d31126077886
parent67f39b32db2b68eabcc51519a2430687439f1cf5
avformat/udp: increase the default buffer size of a receiving socket to 384K

It is a common mistake that people only increase fifo_size when they experience
drops, unfortunately this does not help for higher bitrate (> 100 Mbps) streams
when the reader thread simply might not receive the packets in time (especially
under high CPU load) if the default 64 KB of kernel buffer size is used.

New default is determined so that common linux systems can set this buffer size
without tuning kernel parameters.

Signed-off-by: Marton Balint <cus@passwd.hu>
doc/protocols.texi
libavformat/udp.c