# HG changeset patch # User bellard # Date 1061733545 0 # Node ID 64dbc0b60dbe1dc3c73db19bdf7aa645b4b768a9 # Parent b8a3fb61d39a6e01e8a31bac7dbf260c9205980d win32 compile fix diff -r b8a3fb61d39a -r 64dbc0b60dbe utils.c --- 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) {