Mercurial > libavformat.hg
changeset 198:64dbc0b60dbe libavformat
win32 compile fix
author | bellard |
---|---|
date | Sun, 24 Aug 2003 13:59:05 +0000 |
parents | b8a3fb61d39a |
children | 66a05c4f8350 |
files | utils.c |
diffstat | 1 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Thu Aug 21 21:04:19 2003 +0000 +++ b/utils.c Sun Aug 24 13:59:05 2003 +0000 @@ -336,8 +336,11 @@ /* do not open file if the format does not need it. XXX: specific hack needed to handle RTSP/TCP */ must_open_file = 1; - if ((fmt && (fmt->flags & AVFMT_NOFILE)) || - (fmt == &rtp_demux && !strcmp(filename, "null"))) { + if ((fmt && (fmt->flags & AVFMT_NOFILE)) +#ifdef CONFIG_NETWORK + || (fmt == &rtp_demux && !strcmp(filename, "null")) +#endif + ) { must_open_file = 0; } @@ -984,8 +987,11 @@ s->packet_buffer = NULL; } must_open_file = 1; - if ((s->iformat->flags & AVFMT_NOFILE) || - (s->iformat == &rtp_demux && !strcmp(s->filename, "null"))) { + if ((s->iformat->flags & AVFMT_NOFILE) +#ifdef CONFIG_NETWORK + || (s->iformat == &rtp_demux && !strcmp(s->filename, "null")) +#endif + ) { must_open_file = 0; } if (must_open_file) {