]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/tcp.c
Check mp3 header before calling avpriv_mpegaudio_decode_header().
[ffmpeg] / libavformat / tcp.c
index 68bf9f10b1a238584713942c51a0647f465c01ea..cbd51422a8c8616eea2fc4b7aa9892a721cf094e 100644 (file)
@@ -100,7 +100,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,
-                                     timeout * 100, h)) < 0) {
+                                     timeout * 100, h, !!cur_ai->ai_next)) < 0) {
 
             if (ret == AVERROR_EXIT)
                 goto fail1;