[FFmpeg-devel] [PATCH] fix infinite retry issue for rtsp when the uri has redirection
tianhu yang
tianhuyang at gmail.com
Fri Dec 14 02:19:06 EET 2018
---
libavformat/rtsp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index ceb770a3a4..6093424431 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1920,6 +1920,7 @@ redirect:
}
ff_format_set_url(s, new_url);
rt->session_id[0] = '\0';
av_log(s, AV_LOG_INFO, "Status %d: Redirecting to %s\n",
reply->status_code,
s->url);
+ . reply->status_code = 0;
--
2.11.0 (Apple Git-81)
More information about the ffmpeg-devel
mailing list