summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-07-16 07:50:17 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-07-16 07:50:17 +0000
commitafdd82bbf0350c7c74f5889117f340ba30a15476 (patch)
tree3f949e9858233ec32a3d8f828a3b84e898d4648e /libavformat
parent8d6625b6217ce77a61c98886bff28b799a8894b0 (diff)
fix fmt == NULL case
Originally committed as revision 2050 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 90088e1d1d..1fa7fc34af 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -334,7 +334,7 @@ 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->flags & AVFMT_NOFILE) ||
+ if ((fmt && (fmt->flags & AVFMT_NOFILE)) ||
(fmt == &rtp_demux && !strcmp(filename, "null"))) {
must_open_file = 0;
}