Commit 29bcaf94 authored by mstorsjo's avatar mstorsjo

Handle errors returned from ff_rtsp_read_reply in udp_read_packet properly


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22657 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6114466d
......@@ -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;
......
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