aboutsummaryrefslogtreecommitdiffstats
path: root/libav
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-11-20 11:41:22 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-11-20 11:41:22 +0000
commit67d06418daaee0ec43418f5e9a6288fc12203f54 (patch)
treeba01c669b4693074c3b2ef80a86752289e6898d1 /libav
parent2fd0e8e6305358ab59e45d18f05390d4e0e70b5b (diff)
downloadffmpeg-67d06418daaee0ec43418f5e9a6288fc12203f54.tar.gz
added handling of URL redirectors (needed for RTSP streaming client)
Originally committed as revision 1253 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav')
-rw-r--r--libav/utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libav/utils.c b/libav/utils.c
index 492b3c52b8..c5eaeac05d 100644
--- a/libav/utils.c
+++ b/libav/utils.c
@@ -353,6 +353,14 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
goto fail;
}
+ /* XXX: suppress this hack for redirectors */
+ if (fmt == &redir_demux) {
+ err = redir_open(ic_ptr, &ic->pb);
+ url_fclose(&ic->pb);
+ av_free(ic);
+ return err;
+ }
+
ic->iformat = fmt;
/* allocate private data */