Commit 35cfd646 authored by Martin Storsjö's avatar Martin Storsjö

Don't follow RTSP redirects when used as a muxer

Originally committed as revision 21966 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 3e24c770
......@@ -1543,7 +1543,7 @@ redirect:
fail:
rtsp_close_streams(s);
url_close(rt->rtsp_hd);
if (reply->status_code >=300 && reply->status_code < 400) {
if (reply->status_code >=300 && reply->status_code < 400 && s->iformat) {
av_strlcpy(s->filename, reply->location, sizeof(s->filename));
av_log(s, AV_LOG_INFO, "Status %d: Redirecting to %s\n",
reply->status_code,
......
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