]> git.sesse.net Git - ffmpeg/commit
tcp: properly return EOF
authorwm4 <nfxjfg@googlemail.com>
Sat, 30 Dec 2017 16:44:03 +0000 (17:44 +0100)
committerwm4 <nfxjfg@googlemail.com>
Sun, 31 Dec 2017 15:14:23 +0000 (16:14 +0100)
commit0e1f771d2200d14d298df09c91e14f51e418fd3a
tree57602ee07d32971fa06bfe60387bcc0831f46c96
parente45f7bca735ff7ba965ec1e441199dc7aeb0c8fc
tcp: properly return EOF

There is no POSIX error code for EOF - recv() signals EOF by simply
returning 0. But libavformat recently changed its conventions and
requires an explicit AVERROR_EOF, or it might get into an endless retry
loop, consuming 100% CPU while doing nothing.
libavformat/tcp.c