diff options
author | Martin Storsjö <martin@martin.st> | 2010-03-24 18:52:27 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-03-24 18:52:27 +0000 |
commit | 3032276b189263c1aabe6dae34610b0c8af5e090 (patch) | |
tree | c2a49be5396c5d5439bb69ad83261d796f195e88 /libavformat/rtsp.c | |
parent | 852e0ca555514eb103a662df4f104cd596ed7cdf (diff) | |
download | ffmpeg-3032276b189263c1aabe6dae34610b0c8af5e090.tar.gz |
Handle errors returned from ff_rtsp_read_reply in udp_read_packet properly
Originally committed as revision 22657 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 12faf980f8..19175a07fb 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1670,7 +1670,9 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, if (tcp_fd != -1 && FD_ISSET(tcp_fd, &rfds)) { RTSPMessageHeader reply; - ff_rtsp_read_reply(s, &reply, NULL, 0); + ret = ff_rtsp_read_reply(s, &reply, NULL, 0); + if (ret < 0) + return ret; /* XXX: parse message */ if (rt->state != RTSP_STATE_STREAMING) return 0; |