[FFmpeg-cvslog] avformat/tcp: fix pointer to int warning

Michael Niedermayer git at videolan.org
Sun Aug 25 19:50:27 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Aug 25 19:44:40 2013 +0200| [22fbc7f8becdee1fd6ab7cac93ae23d6022e9a56] | committer: Michael Niedermayer

avformat/tcp: fix pointer to int warning

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=22fbc7f8becdee1fd6ab7cac93ae23d6022e9a56
---

 libavformat/tcp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index 36af37a..634d99d 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;



More information about the ffmpeg-cvslog mailing list