[FFmpeg-cvslog] r21966 - trunk/libavformat/rtsp.c

mstorsjo subversion
Mon Feb 22 16:57:40 CET 2010


Author: mstorsjo
Date: Mon Feb 22 16:57:40 2010
New Revision: 21966

Log:
Don't follow RTSP redirects when used as a muxer

Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	Mon Feb 22 16:56:18 2010	(r21965)
+++ trunk/libavformat/rtsp.c	Mon Feb 22 16:57:40 2010	(r21966)
@@ -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,



More information about the ffmpeg-cvslog mailing list