[FFmpeg-devel] [PATCH] fix infinite loop for ff_rtsp_connect when failure of connection after redirection
tianhu yang
tianhuyang at gmail.com
Tue Dec 18 23:26:35 EET 2018
---
libavformat/rtsp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index ceb770a3a4..af3e112152 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1923,6 +1923,7 @@ redirect:
av_log(s, AV_LOG_INFO, "Status %d: Redirecting to %s\n",
reply->status_code,
s->url);
+ reply->status_code = 0;
goto redirect;
}
fail2:
--
2.11.0 (Apple Git-81)
More information about the ffmpeg-devel
mailing list