Browse Source

Don't follow RTSP redirects when used as a muxer

Originally committed as revision 21966 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Martin Storsjö 16 years ago
parent
commit
35cfd6464e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rtsp.c

+ 1
- 1
libavformat/rtsp.c View File

@@ -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,


Loading…
Cancel
Save