diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-06 03:31:37 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-06 03:31:37 +0400 |
commit | efa9e6b4234534682bf7e4629c2e8024e35c64f2 (patch) | |
tree | 43440ec192c59379c773a64a6e00bf231d4db136 /libavformat/network.c | |
parent | 390aabb2a1ade0cefec6ab10e39b391b43de5c45 (diff) |
ff_network_wait_fd_timeout: do not break with timeout < 0
Most code treats timeout < 0 like 0 already
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/network.c')
-rw-r--r-- | libavformat/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/network.c b/libavformat/network.c index 8cffd68aa5..55392af043 100644 --- a/libavformat/network.c +++ b/libavformat/network.c @@ -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) |