mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 21:14:47 +00:00
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
This commit is contained in:
parent
852e0ca555
commit
3032276b18
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user