ff_network_wait_fd_timeout: do not break with timeout < 0
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 5 Jul 2013 23:31:37 +0000 (01:31 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 5 Jul 2013 23:31:37 +0000 (01:31 +0200)
Most code treats timeout < 0 like 0 already

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/network.c

index 8cffd68aa509a3926647d7701fd9aa03beb868e7..55392af0438af5f48f507c086755bb0f1a1b5dd0 100644 (file)
@@ -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)