mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-06 23:41:06 +00:00
Suppress the "redirector hack" from libavformat/utils.c:av_open_input_stream(),
and implement the redirector format more properly. Originally committed as revision 11112 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
fe2b276c2e
commit
e8acf0edea
2 changed files with 8 additions and 16 deletions
|
@ -464,16 +464,6 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
|
|||
goto fail;
|
||||
}
|
||||
|
||||
/* XXX: suppress this hack for redirectors */
|
||||
#ifdef CONFIG_REDIR_DEMUXER
|
||||
if (!strcmp(fmt->name, "redir")) {
|
||||
int redir_open(AVFormatContext **ic_ptr, ByteIOContext *f);
|
||||
err = redir_open(ic_ptr, pb);
|
||||
url_fclose(pb);
|
||||
return err;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* check filename in case of an image number is expected */
|
||||
if (fmt->flags & AVFMT_NEEDNUMBER) {
|
||||
if (!av_filename_number_test(filename)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue