Commit efa9e6b4 authored by Michael Niedermayer's avatar Michael Niedermayer

ff_network_wait_fd_timeout: do not break with timeout < 0

Most code treats timeout < 0 like 0 already
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 390aabb2
......@@ -162,7 +162,7 @@ int ff_network_wait_fd_timeout(int fd, int write, int64_t timeout, AVIOInterrupt
return ret;
if (ff_check_interrupt(int_cb))
return AVERROR_EXIT;
if (timeout) {
if (timeout > 0) {
if (!wait_start)
wait_start = av_gettime();
else if (av_gettime() - wait_start > timeout)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment