avformat/tcp: fix pointer to int warning
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 25 Aug 2013 17:44:40 +0000 (19:44 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 25 Aug 2013 17:44:40 +0000 (19:44 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/tcp.c

index 36af37a..634d99d 100644 (file)
@@ -127,7 +127,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
         }
     } else {
         if ((ret = ff_listen_connect(fd, cur_ai->ai_addr, cur_ai->ai_addrlen,
-                                     s->open_timeout / 1000, h, cur_ai->ai_next)) < 0) {
+                                     s->open_timeout / 1000, h, !!cur_ai->ai_next)) < 0) {
 
             if (ret == AVERROR_EXIT)
                 goto fail1;