Commit c7f30095 authored by mstorsjo's avatar mstorsjo

Don't follow RTSP redirects when used as a muxer


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21966 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c322e611
...@@ -1543,7 +1543,7 @@ redirect: ...@@ -1543,7 +1543,7 @@ redirect:
fail: fail:
rtsp_close_streams(s); rtsp_close_streams(s);
url_close(rt->rtsp_hd); 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_strlcpy(s->filename, reply->location, sizeof(s->filename));
av_log(s, AV_LOG_INFO, "Status %d: Redirecting to %s\n", av_log(s, AV_LOG_INFO, "Status %d: Redirecting to %s\n",
reply->status_code, 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