From 22fbc7f8becdee1fd6ab7cac93ae23d6022e9a56 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 25 Aug 2013 19:44:40 +0200 Subject: [PATCH] avformat/tcp: fix pointer to int warning Signed-off-by: Michael Niedermayer --- libavformat/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 36af37a94a..634d99d0d0 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -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;