From 67d06418daaee0ec43418f5e9a6288fc12203f54 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Wed, 20 Nov 2002 11:41:22 +0000 Subject: [PATCH] added handling of URL redirectors (needed for RTSP streaming client) Originally committed as revision 1253 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libav/utils.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libav/utils.c b/libav/utils.c index 492b3c52b..c5eaeac05 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 */ -- 2.11.0