properly compile code for REDIR_DEMUXER
Originally committed as revision 8840 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -1399,6 +1399,7 @@ AVInputFormat sdp_demuxer = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_REDIR_DEMUXER
|
||||||
/* dummy redirector format (used directly in av_open_input_file now) */
|
/* dummy redirector format (used directly in av_open_input_file now) */
|
||||||
static int redir_probe(AVProbeData *pd)
|
static int redir_probe(AVProbeData *pd)
|
||||||
{
|
{
|
||||||
@ -1461,3 +1462,4 @@ AVInputFormat redir_demuxer = {
|
|||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
@ -452,7 +452,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* XXX: suppress this hack for redirectors */
|
/* XXX: suppress this hack for redirectors */
|
||||||
#ifdef CONFIG_NETWORK
|
#ifdef CONFIG_REDIR_DEMUXER
|
||||||
if (fmt == &redir_demuxer) {
|
if (fmt == &redir_demuxer) {
|
||||||
err = redir_open(ic_ptr, pb);
|
err = redir_open(ic_ptr, pb);
|
||||||
url_fclose(pb);
|
url_fclose(pb);
|
||||||
|
Reference in New Issue
Block a user