[FFmpeg-cvslog] r22657 - trunk/libavformat/rtsp.c

mstorsjo subversion
Wed Mar 24 19:52:27 CET 2010


Author: mstorsjo
Date: Wed Mar 24 19:52:27 2010
New Revision: 22657

Log:
Handle errors returned from ff_rtsp_read_reply in udp_read_packet properly

Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	Wed Mar 24 19:40:43 2010	(r22656)
+++ trunk/libavformat/rtsp.c	Wed Mar 24 19:52:27 2010	(r22657)
@@ -1670,7 +1670,9 @@ static int udp_read_packet(AVFormatConte
             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;



More information about the ffmpeg-cvslog mailing list