diff options
author | Martin Storsjö <martin@martin.st> | 2010-02-22 15:57:40 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-02-22 15:57:40 +0000 |
commit | 35cfd6464e60dfe3d65053a102eb44c94ec51fec (patch) | |
tree | 0c7fa5d1b41fd35eb1364093a6413fb59932d646 /libavformat | |
parent | 3e24c7701c6420aa9b4a92c58279c92b02611ee5 (diff) | |
download | ffmpeg-35cfd6464e60dfe3d65053a102eb44c94ec51fec.tar.gz |
Don't follow RTSP redirects when used as a muxer
Originally committed as revision 21966 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 4ea35d85f8..ba66fa70f0 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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, |