Commit 01661ce3 authored by rbultje's avatar rbultje

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>.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21461 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7753ca42
......@@ -1457,7 +1457,7 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
}
}
#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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment