Commit 77179a48 authored by bellard's avatar bellard

fix fmt == NULL case


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2050 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9190e30f
......@@ -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;
}
......
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