Mercurial > libavformat.hg
changeset 5690:c491aa97d974 libavformat
Don't follow RTSP redirects when used as a muxer
author | mstorsjo |
---|---|
date | Mon, 22 Feb 2010 15:57:40 +0000 |
parents | 04c5f50dab62 |
children | 60cbd9b4abea |
files | rtsp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rtsp.c Mon Feb 22 15:56:18 2010 +0000 +++ b/rtsp.c Mon Feb 22 15:57:40 2010 +0000 @@ -1543,7 +1543,7 @@ 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,