summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-08-24 13:59:05 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-08-24 13:59:05 +0000
commit00b4fdb758e2a6596363c7b35ffbd89f7e137a95 (patch)
treed128f655cf6f837a051c1a56c848eb9ec519d782
parent3519af27d83963132197edaf6a492285651d3299 (diff)
downloadffmpeg-streaming-00b4fdb758e2a6596363c7b35ffbd89f7e137a95.zip
ffmpeg-streaming-00b4fdb758e2a6596363c7b35ffbd89f7e137a95.tar.gz
win32 compile fix
Originally committed as revision 2139 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/utils.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 2753bf1..970c51e 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -336,8 +336,11 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
/* 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 @@ void av_close_input_file(AVFormatContext *s)
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) {
OpenPOWER on IntegriCloud