aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-06 01:31:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-06 01:31:37 +0200
commitefa9e6b4234534682bf7e4629c2e8024e35c64f2 (patch)
tree43440ec192c59379c773a64a6e00bf231d4db136 /libavformat
parent390aabb2a1ade0cefec6ab10e39b391b43de5c45 (diff)
downloadffmpeg-efa9e6b4234534682bf7e4629c2e8024e35c64f2.tar.gz
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')
-rw-r--r--libavformat/network.c2
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)