mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-08 23:58:51 +00:00
added handling of URL redirectors (needed for RTSP streaming client)
Originally committed as revision 1253 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2fd0e8e630
commit
67d06418da
@ -353,6 +353,14 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
|
|||||||
goto fail;
|
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;
|
ic->iformat = fmt;
|
||||||
|
|
||||||
/* allocate private data */
|
/* allocate private data */
|
||||||
|
Loading…
Reference in New Issue
Block a user