Commit aa7e42f0 authored by bellard's avatar bellard

win32 compile fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2139 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c7d2ddbc
...@@ -336,8 +336,11 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, ...@@ -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 /* do not open file if the format does not need it. XXX: specific
hack needed to handle RTSP/TCP */ hack needed to handle RTSP/TCP */
must_open_file = 1; must_open_file = 1;
if ((fmt && (fmt->flags & AVFMT_NOFILE)) || if ((fmt && (fmt->flags & AVFMT_NOFILE))
(fmt == &rtp_demux && !strcmp(filename, "null"))) { #ifdef CONFIG_NETWORK
|| (fmt == &rtp_demux && !strcmp(filename, "null"))
#endif
) {
must_open_file = 0; must_open_file = 0;
} }
...@@ -984,8 +987,11 @@ void av_close_input_file(AVFormatContext *s) ...@@ -984,8 +987,11 @@ void av_close_input_file(AVFormatContext *s)
s->packet_buffer = NULL; s->packet_buffer = NULL;
} }
must_open_file = 1; must_open_file = 1;
if ((s->iformat->flags & AVFMT_NOFILE) || if ((s->iformat->flags & AVFMT_NOFILE)
(s->iformat == &rtp_demux && !strcmp(s->filename, "null"))) { #ifdef CONFIG_NETWORK
|| (s->iformat == &rtp_demux && !strcmp(s->filename, "null"))
#endif
) {
must_open_file = 0; must_open_file = 0;
} }
if (must_open_file) { if (must_open_file) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment