OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd0e8e
)
added handling of URL redirectors (needed for RTSP streaming client)
author
Fabrice Bellard
<fabrice@bellard.org>
Wed, 20 Nov 2002 11:41:22 +0000
(11:41 +0000)
committer
Fabrice Bellard
<fabrice@bellard.org>
Wed, 20 Nov 2002 11:41:22 +0000
(11:41 +0000)
Originally committed as revision 1253 to svn://svn.ffmpeg.org/ffmpeg/trunk
libav/utils.c
patch
|
blob
|
history
diff --git
a/libav/utils.c
b/libav/utils.c
index
492b3c5
..
c5eaeac
100644
(file)
--- 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 */