projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6548c93
)
Don't use tcp_fd if we're not using TCP-based connections (e.g. when
author
Jeremy Morton
<ffmpeg@game-point.net>
Tue, 26 Jan 2010 15:51:54 +0000
(15:51 +0000)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Tue, 26 Jan 2010 15:51:54 +0000
(15:51 +0000)
reading direct SDP files to set up UDP-based RTP-streams). Fixes
issue 1713. Patch by Jeremy Morton <ffmpeg game-point net>.
Originally committed as revision 21461 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtsp.c
patch
|
blob
|
history
diff --git
a/libavformat/rtsp.c
b/libavformat/rtsp.c
index
c9fb097
..
d1738dd
100644
(file)
--- a/
libavformat/rtsp.c
+++ b/
libavformat/rtsp.c
@@
-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);