changeset 5589:dca2836e09b8 libavformat

Don't use tcp_fd if we're not using TCP-based connections (e.g. when reading direct SDP files to set up UDP-based RTP-streams). Fixes issue 1713. Patch by Jeremy Morton <ffmpeg game-point net>.
author rbultje
date Tue, 26 Jan 2010 15:51:54 +0000
parents 866c497d9abd
children da4b8a105fd3
files rtsp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Mon Jan 25 01:28:01 2010 +0000
+++ b/rtsp.c	Tue Jan 26 15:51:54 2010 +0000
@@ -1457,7 +1457,7 @@
                 }
             }
 #if CONFIG_RTSP_DEMUXER
-            if (FD_ISSET(tcp_fd, &rfds)) {
+            if (tcp_fd != -1 && FD_ISSET(tcp_fd, &rfds)) {
                 RTSPMessageHeader reply;
 
                 rtsp_read_reply(s, &reply, NULL, 0);