# HG changeset patch # User mstorsjo # Date 1266854260 0 # Node ID c491aa97d974c093c2f227b2c2933530db52502d # Parent 04c5f50dab6213dc72f95c5e4bce3b228394a969 Don't follow RTSP redirects when used as a muxer diff -r 04c5f50dab62 -r c491aa97d974 rtsp.c --- 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,