diff options
author | Perette Barella <perette@barella.org> | 2016-01-19 13:22:13 -0500 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-22 15:36:30 +0100 |
commit | 84110f4f7760c4f0a9c3e394447304e7cd2384a3 (patch) | |
tree | dcd5f58f08b5e7e3d49928936c0086a71adb783b /tests/ref/vsynth/vsynth2-dnxhd-720p | |
parent | 1fb5ae44c43de48fa497b29f559dcf32313f5290 (diff) | |
download | ffmpeg-84110f4f7760c4f0a9c3e394447304e7cd2384a3.tar.gz |
libavformat/tcp.c : add send_buffer_size and recv_buffer_size options
adds two new options that may be set via the dictionary:
- send_buffer_size
- recv_buffer_size
When present, setsockopt() is used with SO_SNDBUF and SO_RCVBUF to set
socket buffer sizes. I chose to make send and receive independent
because buffering requirements are often asymmetric.
Errors in setting the buffer size mean the socket will use its
default, so they are ignored.
There is no sanity checking on values, as the kernel/socket layers
already impose reasonable limits if asked for something crazy.
Rationale for enlarging receive buffers is to reduce susceptibility
to intermittent network delays/congestion. I added setting the send
buffer for symmetry.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/ref/vsynth/vsynth2-dnxhd-720p')
0 files changed, 0 insertions, 0 deletions